PDA

View Full Version : instances of movieclip, not clone



isdito
August 24th, 2009, 03:34 AM
Hello:

I have a movieclip that inside have secuence of image, I will like 1000 instances of this movieclip, but I not like reload the 100 of images inside the movieclip

It is posible.That the movieclip have a child share with more objects

Thanks for all

akiersky
August 25th, 2009, 04:55 PM
if your base movie clip with the 100 images is in the library with an instance name like "mcInstance", you would just have to:

for (i=0; i<1000; i++){
var instance=new mcInstance()
addChild(instance)
instance.x= i*10 (or whatever you want to change the x)
...
...
}