You simply refer to components by their
id. You don't have to "look them up" by it. For example, if you have MyApp.mxml: <mx:Application> <mx::Canvas id="c1"> <mx:Button id="b1"> ... then in the Application's
<mx:Script> methods you can write expressions like b1.label. Technically, what is happening is that the
MXML compiler autogenerates var c1:Canvas; var b1:Button; as instance vars of a MyApp class which
extends Application. The methods you write in the <mx:Script> become
methods of this MyApp class, so they can acess these instance vars. To access components inside components,
you simply use the dot operator. - Gordon From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marlon Moyer What's
the equivalent of _javascript_'s getElementById in Flex? I've -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Is there a way to find an object if you ... Gordon Smith
- Re: [flexcoders] Is there a way to find an object if... Marlon Moyer
- [flexcoders] Re: Is there a way to find an objec... Michael Labriola
- [flexcoders] Re: Is there a way to find an objec... Michael Labriola
- RE: [flexcoders] Re: Is there a way to find ... Gordon Smith