I have a MovieClip, and inside of that is a Loader that loads an image. I have an INIT event listener, which fires a function like this:
private function BoxartLoaded(event:Event):void {
(event.target).parent.addChild(event.target.content);
}
I assumed that would add the image to the Loader’s parent MovieClip once loaded, but it tells me that “parent” isn’t valid.
What’s the proper method for adding a child to a Loader’s parent?