Are those names or id's?

If they are Flex id's then you can do things like:
var myObj:Object = eval("object" + N);
Or:
this["object" + N].myProperty = "whatever";

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of dimkapimkakolbasa
Sent: Monday, July 18, 2005 1:30 PM
To: [email protected]
Subject: [flexcoders] How can I get an object by its id in a string?

I have a string with the name of the object. What function should I use 
to get itself?

For example, I produce many objects by createClassObject() with 
names "object1", "object2" and furthermore. How can I get access to the 
objectN, where N is a numeric variable?




--
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



 






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to