# Wierd issue with images not showing up when testing online

**URL:** <https://forum.kirupa.com/t/wierd-issue-with-images-not-showing-up-when-testing-online/301373>\
**Category:** flash\
**Created:** [December 8, 2009, 2:24pm UTC](https://forum.kirupa.com/t/wierd-issue-with-images-not-showing-up-when-testing-online/301373 "2009-12-08T14:24:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0L4F](https://avatars.discourse-cdn.com/v4/letter/0/848f3c/32.png) [@0L4F](https://forum.kirupa.com/u/0L4F)\
**Post date:** [December 8, 2009, 2:24pm UTC](https://forum.kirupa.com/t/wierd-issue-with-images-not-showing-up-when-testing-online/301373/1 "2009-12-08T14:24:56Z")

</div>

Hi Kirupians,

I’m running into a very strange issue when testing an application I’m building online: loaded images aren’t showing.

When testing locally everything works fine.

I’m retrieving the images from an Adobe Scene7 server, and there’s a crossdomain.xml in place there with the correct entries. I’m getting the right _bytesLoaded_ and _bytesTotal_. I’m not getting an IOError Event.

What could be wrong?

Here’s a piece of the offending code: (I replaced Event.COMPLETE with Event.INIT, hoping it might make a difference, but it doesn’t)  
[AS]loader.contentLoaderInfo.addEventListener(Event.INIT, onImageComplete);  
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO\_ERROR, onIOError);

private function onImageComplete(event:Event):void {  
loader.contentLoaderInfo.removeEventListener(Event.INIT, onImageComplete);  
loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO\_ERROR, onIOError);

```
        bmp = event.target.content;
        bmp.smoothing = true;
        bmp.width = nWidth;
        bmp.height = nHeight;
        imageHolder.addChild(bmp);
        
        TweenMax.to(imageHolder, 1, {alpha:1});
        
        dispatchEvent(new Event("IMAGE_COMPLETE", true));
    }

```

[/AS]
