I'm converting an old AS1 project to AS3 and am running into a little problem.
Previously, I was attaching random movieclips that are linked from the library with id's like movie1, movie2, movie3, etc. Here was my code:
var ranID = random(4)+1;
var mc = attachMovie("movie"+(ranID), "mc"+ranID, ranID);
In AS3, I've given each of these movieclips in the library a class name, so that I can do something like:
var mc = new movie1();
However, i want that to be a random mc... any ideas?