# Image loader not working with as 1.0

**URL:** <https://forum.kirupa.com/t/image-loader-not-working-with-as-1-0/230113>\
**Category:** Uncategorized\
**Created:** [June 22, 2007, 5:40pm UTC](https://forum.kirupa.com/t/image-loader-not-working-with-as-1-0/230113 "2007-06-22T17:40:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![panzhuli](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@panzhuli](https://forum.kirupa.com/u/panzhuli)\
**Post date:** [June 22, 2007, 5:40pm UTC](https://forum.kirupa.com/t/image-loader-not-working-with-as-1-0/230113/1 "2007-06-22T17:40:17Z")

</div>

Can someone tell me why this isn’t working with as 1.0? I have to publish it with 1.0 for other reasons. basically i want a simple preloader:

var filename = “largeImage.jpg”;  
//Load the image  
image\_holder\_mc.loadMovie(filename);

this.onEnterFrame = function(){  
percent=(this.image\_holder\_mc.getBytesLoaded()/this.image\_holder\_mc.getBytesTotal())\*100;  
trace (percent);  
if(!isNan(percent)){  
trace(percent+’% loaded’);  
}else{  
trace(‘0% loaded’);  
}  
if(percent == 100){  
delete this.onEnterFrame;  
infoField.\_visible = false;  
image\_holder\_mc.\_xscale = 25;  
image\_holder\_mc.\_yscale = 25;  
image\_holder\_mc.\_x = x\_offset;  
image\_holder\_mc.\_y = y\_offset;  
}  
};

anyone??? it goes straight to 100% when viewed through the download simulator, but the image isn’t actually loaded. I don’t really know as 1.0, just 2.0. thanks!
