Hello all.
I have this function that has a loop in it.
function createCollection(array) {
trace("hello from function createCollection");
createEmptyMovieClip("col_mc", 2);
col_mc._x = 150;
col_mc._y = 0;
//
var spacing:Number = 15;
for (var i = 0; i<array.length; ++i) {
var y:Number = (i*spacing);
var name:String = "item"+i+"_mc";
col_mc.attachMovie("list_mc", name, i);
col_mc[name]._y = y;
col_mc[name].name_txt.text = array*["collection_id"]+" "+array*["collection_name"];
}
}
How do i get it to hold until col_mc[name] has reached frame 80 in its timeline?
So it loops then waits for the movie to get to frame 80 before carrying on.
Any ideas
I’ve tried putting in a while loop but thats not working.