# Script working perfect on IE and not Firefox

**URL:** <https://forum.kirupa.com/t/script-working-perfect-on-ie-and-not-firefox/240583>\
**Category:** flash\
**Created:** [October 4, 2007, 7:26am UTC](https://forum.kirupa.com/t/script-working-perfect-on-ie-and-not-firefox/240583 "2007-10-04T07:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drivebass](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@drivebass](https://forum.kirupa.com/u/drivebass)\
**Post date:** [October 4, 2007, 7:26am UTC](https://forum.kirupa.com/t/script-working-perfect-on-ie-and-not-firefox/240583/1 "2007-10-04T07:26:41Z")

</div>

Can someone please tell me what is th eproblem with this script?  
It works perfect on IE but on Firefox it doesn;t load the jpg.

Check the example [http://db-art.110mb.com/indexo.html](http://db-art.110mb.com/indexo.html)

It’s an altered tweaked version of kirupa’s thumbnail gallery.

Here is the code that load’s jpgs in mc IMG\_MC:  
function loadIt() {  
this.onEnterFrame = function() {  
\_root.fader.alphaTo(100,0.4,“easeOutBounce”);  
\_root.fader.\_alpha = 100;  
if (\_root.fader.\_alpha = 100) {  
\_root.IMG\_MC2.loadMovie(image[p],1);  
this.onEnterFrame = function() {  
filesize = \_root.IMG\_MC2.getBytesTotal();  
loaded = \_root.IMG\_MC2.getBytesLoaded();  
\_root.preloader.alphaTo(100,0.1,“linear”);  
\_root.preloader.xScaleTo(100,0.1,“linear”);  
percent = 100\*(loaded/filesize);  
if (loaded != filesize) {  
\_root.preloader.bar.\_xscale = percent;  
\_root.preloader.percent\_txt.text = int(percent)+"%";  
} else {  
\_root.preloader.alphaTo(0,0.8,“linear”);  
\_root.preloader.xScaleTo(0,0.8,“easeInBounce”);  
curImg = new flash.display.BitmapData(1280,1024,false,0x00ffffff);  
\_root.IMG\_MC.attachBitmap(curImg, 0, “never”, true);  
curImg.draw(\_root.IMG\_MC2);  
\_root.fader.alphaTo(0,0.5,“linear”);  
\_root.IMG\_MC2.unloadMovie();  
delete this.onEnterFrame;  
}  
};  
}  
};  
}
