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: <flexcoders@yahoogroups.com>
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








------------------------ 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/
 



Reply via email to