Have you looked at “bracket” notation?

 

var myComponentRef:MyComponent = this[“myComponentID”];

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of richmcgillicuddy
Sent: Thursday, August 17, 2006 7:03 AM
To: [email protected]
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 that
will list all application components/objects.

psuedo code again

for (i=0;i<components.count-1; i++) {
var thisObject:TObject = components[i];
thisObject.doStuff..
}

Rich

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to