# Adding a loaded image to its parent MovieClip

**URL:** <https://forum.kirupa.com/t/adding-a-loaded-image-to-its-parent-movieclip/317455>\
**Category:** flash\
**Created:** [December 21, 2010, 7:04am UTC](https://forum.kirupa.com/t/adding-a-loaded-image-to-its-parent-movieclip/317455 "2010-12-21T07:04:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashground](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Ashground](https://forum.kirupa.com/u/Ashground)\
**Post date:** [December 21, 2010, 7:04am UTC](https://forum.kirupa.com/t/adding-a-loaded-image-to-its-parent-movieclip/317455/1 "2010-12-21T07:04:28Z")

</div>

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:

```auto

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?
