Dynamic Variable Names

Posted by Ross on Stack Overflow See other posts from Stack Overflow or by Ross
Published on 2010-04-17T08:11:23Z Indexed on 2010/04/17 8:13 UTC
Read the original article Hit count: 215

Filed under:
|
|

I have a function that is called 3 times, I want times to assign it a name. How can I assign dynamic variable names to movieclips or do reference them by name or instancename?

var loadedMovie:MovieClip = new MovieClip();

loadedMovie.name = "mymovie";

loadedMovie = loadEvent.currentTarget.content; loadedMovie.x = 0; loadedMovie.y = 0;

addChild(loadedMovie);

mymovie.x = 20;

© Stack Overflow or respective owner

Related posts about as3

Related posts about dynamic