Implement a public property as a var or a getter/setter. Then declare
that property to be the default property of your component, using
 
<mx:Metadata>
    [DefaultProperty("yourproperty")]
</mx:Metadata>
 
- Gordon

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Paton J. Lewis
Sent: Saturday, February 02, 2008 11:46 AM
To: [email protected]
Subject: [flexcomponents] How to access child elements of a component
instance?



How does one access the child elements of a component instance from 
within the component definition?

For example, if I have a component file MyComp.mxml and an 
application file with the following:

...
xmlns:comp="components.*"
...
<comp:MyComp>
<![CDATA[some cdata text]]>
</comp:MyComp>
...

How can I access the CDATA XML node from within the MyComp.mxml 
implementation?



 

Reply via email to