# Loader not loading

**URL:** <https://forum.kirupa.com/t/loader-not-loading/275971>\
**Category:** flash\
**Created:** [November 20, 2008, 8:16pm UTC](https://forum.kirupa.com/t/loader-not-loading/275971 "2008-11-20T20:16:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpdp](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bpdp](https://forum.kirupa.com/u/bpdp)\
**Post date:** [November 20, 2008, 8:16pm UTC](https://forum.kirupa.com/t/loader-not-loading/275971/1 "2008-11-20T20:16:42Z")

</div>

Hi all,  
I’m sure this a real noob question but I can’t seem to get this to work. I’m just trying to load an image I know that the variable img\_path is being set correctly because of the trace statements, and LittleSnitch tells me that it is connecting to google. but the image will not display.

my class

```auto

package com.fieldsofcorn.loaders {
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    
    public class LoadImage extends MovieClip {
        
        private var img_path:String;
        
        public function LoadImage(path) {
            trace(path)
            this.img_path = path;
            init();
        } // end constructor
        
        public function init():void {
            var loader:Loader = new Loader();
            addChild(loader);
            trace(this.img_path);
            loader.load(new URLRequest(this.img_path));
        } // end init
        
        
        
    }// end class
} // end package

```

and this is in the first frame of my movie:

```auto

import com.fieldsofcorn.loaders.LoadImage
var img:LoadImage = new LoadImage("http://www.google.com/intl/en_ALL/images/logo.gif");

```

Any help would be great. My first AS3 project.
