Yeah, I have seen that example but it doesn't tell you how to create a child from file or URL. I build the path to the class dynamically like this:
"samples.classes." + dynamicClass; Where dynamic class is a variable that holds the name of the mxml file, which needs to be loaded. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Saturday, August 06, 2005 4:39 AM To: [email protected] Subject: Re: [flexcoders] Create Panel Child On 8/6/05, Mehdi, Agha <[EMAIL PROTECTED]> wrote: > I want to create a child of Panel through script. When a child needs > to be created, I do the following > > function createPanelChild() > { > var child = "components.category_" + childID; > this.createChild( child, "category" ); } See the documentation of the createChild method. http://livedocs.macromedia.com/flex/15/asdocs_en/mx/core/View.html#createChi ld It should be something like this: var child = this.createChild( HBox, "", {width: 100, height: 200} ); Manish ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hp5lguo/M=362131.6882499.7825260.1510227 /D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123335555/A=2889191/R=0/SIG=10r90krvo /*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- 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 ensure compliance with requirements imposed by the IRS, we inform you that any U.S. federal tax advice contained in this document (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Littler Mendelson, P.C. http://www.littler.com ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hkod6rl/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123473771/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- 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/

