# Image loader to movieclip from extern .as

**URL:** <https://forum.kirupa.com/t/image-loader-to-movieclip-from-extern-as/266778>\
**Category:** flash\
**Created:** [July 24, 2008, 8:19am UTC](https://forum.kirupa.com/t/image-loader-to-movieclip-from-extern-as/266778 "2008-07-24T08:19:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BACH](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@BACH](https://forum.kirupa.com/u/BACH)\
**Post date:** [July 24, 2008, 8:19am UTC](https://forum.kirupa.com/t/image-loader-to-movieclip-from-extern-as/266778/1 "2008-07-24T08:19:36Z")

</div>

Hi all!

I’m new here at Kirupa and also pretty noob when it comes to AS3.

I’m working on a slideshowproject (like all newbees do!) and I’m stuck trying to load an image into a movieclip.

I have my loader in a class called “Image.as” and by doing some traces I can see it works fine. But when i try to send the image to the movieclip (which I have named “\_mc”) I have on the stage I just get the “Acces of undifined property \_mc”. What am I missing? After the file has loaded from the Internet the Image.as calls the function imageLoaded:

```auto
function imageLoaded(e:Event):void {
    //Load billedet
    _mc.addChild(pictLdr);
    trace("If you see this, the file has loaded correctly.");
    }

```

In my .fla I have done this to add the empty movieclip to the stage:

```auto
var _mc:MovieClip = new MovieClip;
//Add _mc to stage
addChild(_mc);
_mc.width = 550;
_mc.height = 400;
 
var imageloader:Image = new Image;

```

I think I’m too old to learn anything new! ;( Been stuck for days!

If you need to see all of the code I can copy/paste it. It’s not that large.
