hi there,
I’m having trouble. I want to create a function that can create new MCs. I have a movieClip exporting as “Box” in my library, and I want to add an instance to the stage called “box”…
like so:
function addNewMC (instanceName:String, mcName:MovieClip)
{
instanceName:mcName = new mcName;
addChild(instanceName);
}
addNewMC(box, Box);
but that does not work! I think it’s something small, but I’m not sure what. I’m going to use this function for a bunch of different MCs, which is why I want it to by dynamic.
If there’s a smarter way to do this… I will!
Thanks! -Travis