OR...
You could do the following in your loop...

mc.name = "mc"+i;


It all depends on how you want to reference those clips though, mouseEvents? Or just an
animation / change of some property on each clip?

-Gerry

On Dec 14, 2008, at 3:00 PM, php_mysql_ as_ dev wrote:

Hello.... This code seems to give me a column of 10 instances of
"myMovieClip." But it doesn't make sense because each instance is referenced
by "mc."  How would I reference each clip?
public class create_ten_clips extends MovieClip {

    public var mc:MovieClip = new MovieClip();

    public function create_ten_clips() {
         for(var i:int = 0; i < 10; i++) {
             mc =new myMovieClip();
             this.addChild(mc);
             mc.y=i*100;
             }
         }
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to