So I have a loader that is loading in an image file.
What I would like to do is reparent the image it loads to a movieclip or sprite after it is loaded so I can reuse it again. It works sort of. I can get the result I want but only if I don’t data type the mc variable.
this function appears in my loader class.
public function reparentContent(){
var mc = _siteRef.getChildByName("reparentClip")
mc.addChild(_loader)
}
If I dataType the mc variable I get this error:
error 1118: Implicit coercion of a value with static type flash.display: DisplayObject to a possibly unrelated type flash.display:MovieClip.
If i don’t specify a data type it works as planned.
Any thoughts, or should I just not bother since it is working?