Yeah, but it doesn't play well with depth as I've later learned. createChild, and thus mx.core.View which most of those containers extend, uses it's own depth. As such, managing your own depth will later collide so it's best to just use the class' built in methods.
As long as you PROMISE not to EVER load another mc into the Canvas, then createEmptyMovieClip is fine. ----- Original Message ----- From: "bhaq1972" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, October 17, 2005 11:32 AM Subject: [flexcoders] Re: calling createEmptyMovieClip() Thanks that worked. In that origianl post (see below) you mentioned createEmptyMovieClip had less overhead. Thats why i wanted to use it. orginal ref http://www.mail-archive.com/[email protected]/msg08763.html --- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote: > > Try like this: > > var ref_mc = myCanvas.createChild(mx.core.UIObject); > myCanvas.fillRect.call(ref_mc, 0, 0, 100, 100, 0xCC0033, 100); > > > ----- Original Message ----- > From: "bhaq1972" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Monday, October 17, 2005 10:44 AM > Subject: [flexcoders] calling createEmptyMovieClip() > > > Hi > I found this code in the archives (courtesy of JesterXL). but i cant > make it work. any ideas > > var ref_mc = myCanvas.createEmptyMovieClip("square", > getNextHighestDepth()); > myCanvas.fillRect.call(ref_mc, 0, 0, 100, 100, 0xCC0033, 100); > > > > > > > -- > 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

