Thanks that did it. One last question. Since you can't pass an instance of a class into createSegment, but instead just the class type how do I get a reference back to the instance that was just created. The createSegment function returns a movie clip. Can I cast that to, in my example, a Folder class? I need to get that reference so I can finish setting up that control.
Thanks Jeff -----Original Message----- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 7:11 AM To: [email protected] Subject: Re: [flexcoders] subclassing accordion control. On Wed, 23 Mar 2005 01:01:43 -0700, Jeff Krueger <[EMAIL PROTECTED]> wrote: > this.createSegment(Folder,"","Users",""); > > this.createSegment(Folder,"","Users2",""); Do this in createChildren() instead. Manish 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/

