If only a single Image named "imgE" is being created per cell, then you don't have to specify a unique name -- only children of a single parent have to have unique names. However, there is generally no good reason to ever specify a name in createClassObject. If you pass undefined for the second argument, Flex will generate a unique name for you.
- Gordon -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Sunday, April 24, 2005 11:26 AM To: [email protected] Subject: [flexcoders] Re: createClassObject --- In [email protected], "viraf_bankwalla" <[EMAIL PROTECTED]> wrote: > imgE = createClassObject(Image,"imgE", getNextHighestDepth()); Try avoiding the call to getNextHighestDepth() by maintaining your own counter. Also, I think the second argument to createClassObject() needs to be unique. Yahoo! Groups Links 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/

