# LoadMovie Problem For Image Loader

**URL:** <https://forum.kirupa.com/t/loadmovie-problem-for-image-loader/270268>\
**Category:** flash\
**Created:** [September 8, 2008, 5:09am UTC](https://forum.kirupa.com/t/loadmovie-problem-for-image-loader/270268 "2008-09-08T05:09:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redxzed](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Redxzed](https://forum.kirupa.com/u/Redxzed)\
**Post date:** [September 8, 2008, 5:09am UTC](https://forum.kirupa.com/t/loadmovie-problem-for-image-loader/270268/1 "2008-09-08T05:09:05Z")

</div>

Hey,  
I’m working a photography site, in which in a swf file on a web page needs to display an image from a database with a copyright symbol over it. So far I’ve developed a php page that pulls the imgs from the database into XML for flash, and then I use the \_root.\_url to get the url of the swf which has a php var in it ([[COLOR=#0066cc]http://…swf?id=$id[/COLOR]](http://...swf/?id=%24id)). Then it matches id’s of the xml and the swf url and i use the loadMovie() command to load the url.

Thats where my problem is, ive tested the absolute url and the relative url and they both dont work in flash, but when i test the image url on a browser it works. When i checked the getBytesLoaded() and getBytesTotal() of the movieclip thats in the loadMovie tag its 3460 out of 3460 so its just not displying the img. heres a portion of the code, help me out!

```auto
   var1 = "/photos/" + photolist*.childNodes[1].firstChild.nodeValue;
    var2 = filesize;
    var3 = loaded;
    picture.loadMovie("/photos/" + photolist*.childNodes[1].firstChild.nodeValue);
    picture._width = 550;
    picture._height = 400;
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    loading_txt = "Loading Image, Please Wait...";
    if (loaded != filesize) {
     preloader._visible = true;
     preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
     preloader._visible = false;
     complete3 = true;
    }

```
