You don’t need an ID as the properties from the super class are within the “this” scope of the custom component..so if you extended the TextInput and wanted to set the text property:

 

<mx:TextInput creationComplete=”setDefault()”>

 

            public function setDefault(){

                        //Sets the text property to a default value

                        text=”default”

}

 

</mx:TextInput>

 

-Mike


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alban Soupper
Sent: 10 October 2005 09:12
To: Flexcoders (E-mail)
Subject: [flexcoders] Accessing the root of a custom component

 

Hi all,

is there a workaround to the fact that "id is not allowed on root node"?
How can I access the root node of a custom component to change its property?

Best regards,
Alban.


***********************************************************************************

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]

***********************************************************************************




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to