attachMovieClip issue, playing them after attaching
Hi,
I have an issue with the following script. It nicely generates the 10 movieclip stars but it will not play them. What is wrong?
Also how can I make the for loop execute with timing. Let's say I want to generate the ten stars in half second intervals. how can I add setInterval to this?
_root.createEmptyMovieClip("starRow4Holder",this.getNextHighestDepth());
starRow4Holder._x = 315;
starRow4Holder._y = 347;
var i:Number;
for (i=0; i<10; i++) {
starRow4Holder.attachMovie("StarWhiteAnim","row4Star"+i,i,{_x:(i*20)});
starRow4Holder.row4Star.play();
}
Thanks in advance,
Attila