I can invoke this function in my Scene.
function alot(max) {
    var basename:String = "circle_mc";
    for (var i = 0; i<max; i++) {
        _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth
());
        _root[basename+i]._x = 100+i*5;
        _root[basename+i]._y = 100+i*5;
    }
}
alot(5);
it_mc is a MovieClip on the Scene.

2006/3/13, Edward Hotchkiss <[EMAIL PROTECTED]>:
>
> hmm ...
>
> // begin code
> function alot(max) {
> var basename:String = "circle_mc";
> for(var i = 0; i < max; i++) {
>   _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth() );
>   _root[basename+i]._x = 100 + i*5;
>   _root[basename+i]._y = 100 + i*5;
>
> }
> }
>
> the trace returns "0". why are my dynamically duplicated movieclips not
> showing up on the stage???
>
> -eddie
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
亲爱的朋友,祝你天天快了!
http://www.flashpixy.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to