I'd like to add a movieclip from the library to a movieclip on the stage.
function setMc(con:Sprite,mc:Sprite):void
{
con.addChild(mc)
mc.x=mc.width/2
mc.y=mc.height/2
}
setMc(myholder,mylibrarymc)
I get this error:
TypeError: Error #1034: Type Coercion failed
What do I need to change?