AS3 - New movieclip instance
I have 3 types of mc's. I would like to create a new instance of a random mc of one of those types. I wrote somenthing like this but I receive an error:
Error #1007: Instantiation attempted on a non-constructor.
i tried something like this:
var newMC:* = new match as match;
match is an array that contains the 3 types of mc's. match will be something like [object orange], so I want to create a new instance of orange mc.
How can I do that?
