Passing component references

This section describes how to reference MXML components in other objects, and how to reference application objects in an MXML component.

Referencing an MXML component in other application objects

Just like the methods and properties of a standard component, you can access all of the methods and properties of an MXML component in an <mx:Script> block. Statements that call methods or set properties must be contained in the body of a function.

Properties have simple or complex types, which govern the syntax used to set them in MXML. If you set a property to a value in the MXML file that defines a component, you can override that value in an instance of that component used in another file.


Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00000460.htm