Hehe, I didn't know createChild did auto-naming until you showed me, so thanks back at cha!
----- Original Message ----- From: "Gordon Smith" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 25, 2005 3:31 PM Subject: RE: [flexcoders] Re: createClassObject Oops! You are absolutely right than only createChild() does autonaming. Thanks for correcting me. - Gordon -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 5:49 AM To: [email protected] Subject: Re: [flexcoders] Re: createClassObject createChild is the method you should typically use, although since most DataGrid cell renderers inherit from UIComponent, not View, they don't get createChild, which has auto-naming features; createClassObject in UIObject/UIComponent doesn't, so that's probably why he used it with a name, you actually have to pass a name for the 2nd parameter (unless you all are doing something diffferent beyond UIComponent in 1.5). ----- Original Message ----- From: "Gordon Smith" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 25, 2005 2:41 AM Subject: RE: [flexcoders] Re: createClassObject 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 Yahoo! Groups Links 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/

