# Image Loading problems?

**URL:** <https://forum.kirupa.com/t/image-loading-problems/302549>\
**Category:** flash\
**Created:** [January 3, 2010, 6:21am UTC](https://forum.kirupa.com/t/image-loading-problems/302549 "2010-01-03T06:21:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fizzzzzzzzzzzy](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@fizzzzzzzzzzzy](https://forum.kirupa.com/u/fizzzzzzzzzzzy)\
**Post date:** [January 3, 2010, 6:21am UTC](https://forum.kirupa.com/t/image-loading-problems/302549/1 "2010-01-03T06:21:36Z")

</div>

Alright so there’s a section in my code where I load an Image file into the swf. This is what the code looks like:

```auto
public function loadImage() : void 
        {
            imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, displayImage)
            imageLoader.load( new URLRequest("C:/Users/fizzy/Documents/Gallery/imga/" + src));
        }
        
        public function displayImage(_e:Event) : void
        {
            trace(src)
            /*Bitmap( imageLoader.content ).smoothing = true
            imageLoader.y = imageLoader.y*700/imageLoader.x
            imageLoader.x = 700 
            addChild(imageLoader)*/
        }

```

I commented out most of the displayImage function in order to test something, and, as it turns out, the displayImage function isn’t being run at all. Is there something obvious that I’m missing here?
