How would I do the following in AS3.
1. Find an object by id, something like:
psuedo code-
foundobject = app.components.findbyID(lblText);
foundobject.dostuff;
2. Similar, is there a app.components that I can cycle through that
will list all application components/objects.
psuedo code again
Hi Rich,
I just read something about (2) in Programming ActionScript 3 (the
Adobe manual that comes with Flex 2) in Chapter 5 "Display Programming"
- Traversing the display list.
HTH
Phil
richmcgillicuddy wrote:
How would I do the following in AS3.
1. Find an object by id,
Hi,1) There is a method of DisplayObjectContainer that does this by name.getChildByName();Note : This does not return a child by it's id only the name assignment. Which at anytime you can name a component in MXML or actionscript.
myComponent.name = lblText;Then you could find it. If you need
Subject: [flexcoders] Finding an
Object in ActionScript
How would I do the following in AS3.
1. Find an object by id, something like:
psuedo code-
foundobject = app.components.findbyID(lblText);
foundobject.dostuff;
2. Similar, is there a app.components that I can cycle through
4 matches
Mail list logo