Monday, December 28, 2009

With Actionscript how do you control movieclips that are created at runtime?

So you make a bunch of movieclips with the command CreateEmptyMovieClip and a name of (';movie'; + i). How could you then change their _x position in another section of the code?With Actionscript how do you control movieclips that are created at runtime?
This is an Example:


////


i=1;


_root.createEmptyMovieClip(';movie'; + i, i);


trace(_root[';movie';+i]._x);


////





so you can call your Movie Clip of number i





_root[';movie';+1]





and for use any property like _x





_root[';movie';+1]._x








Good Luck

No comments:

Post a Comment