# Ode workin in ie but firefox don´t

**URL:** <https://forum.kirupa.com/t/ode-workin-in-ie-but-firefox-don-t/192394>\
**Category:** Uncategorized\
**Created:** [June 28, 2006, 9:48am UTC](https://forum.kirupa.com/t/ode-workin-in-ie-but-firefox-don-t/192394 "2006-06-28T09:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxo22](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@mxo22](https://forum.kirupa.com/u/mxo22)\
**Post date:** [June 28, 2006, 9:48am UTC](https://forum.kirupa.com/t/ode-workin-in-ie-but-firefox-don-t/192394/1 "2006-06-28T09:48:41Z")

</div>

hi to all i ahve a preloader like inside of a function to preload each section of a site but for some reason the preloader is working wrong please can someone help with this the url is :

[http://www.ips-webdesign.com/principal.html](http://www.ips-webdesign.com/principal.html)

please give me clue to solution that problem i duuno why i happening that i add to text thats shows the outputs of the var loaded,total,percent in firefox percent outputs NaN in ie everything is cool please help me.

thanks in advanced

I post the code for the people can chek maybe there is something wrong on it

> 

“#include “mc\_tween2.as””  
menu.m0.colorTransformTo(100, -97, 100, -43, 100, -255, 100, 0, 0, “easeOutCubic”);  
manchasbarra.colorTransformTo(100, -97, 100, -43, 100, -255, 100, 0, 0, “easeOutCubic”);  
menu.m0.enabled = false;  
stop();  
function cargas(archivo:String, figuraprecarga:MovieClip):Void {  
figuraprecarga.\_visible = true;  
cargador.loadMovie(archivo);  
\_root.onEnterFrame = function() {  
cargador.stop();  
var l:Number = cargador.getBytesLoaded();  
var t:Number = cargador.getBytesTotal();  
var p:Number = Math.round((l_100)/t);  
figuraprecarga.gotoAndPlay(p);  
figuraprecarga.cargatext.text = p+“% loading”;  
carga.text = "porcent = "+p;  
cargal.text = "loaded = "+l;  
cargat.text = "total = "+t;  
if (p\>=99) {  
figuraprecarga.cargatext.text = “”;  
figuraprecarga.\_visible = false;  
cargador.play();  
delete \_root.onEnterFrame;  
}  
};  
}  
var misClips:Array = new Array();  
var otrasprecargas:Array = new Array();  
for (i=0; i\<=5; i++) {  
var m:MovieClip = this[“m”+i];  
var e:MovieClip = this[“escudo”+i];  
e.\_visible = false;  
misClips.push(m);  
otrasprecargas.push(e);  
this[“m”+i].index = i;  
m.id = i;  
m.onRollOver = function() {  
cambiarcolor(this.index, this);  
};  
m.onRollOut = function() {  
this.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 0, 3, “easeOutCubic”);  
};  
m.onPress = function() {  
cambiarcolor(this.index, this);  
cambiarcolor(this.index, \_parent.manchasbarra);  
cambiarcolor(this.index, \_parent.barra);  
cambiarcolor(this.index, \_parent.r);  
var arrayTemporal:Array = new Array();  
var otraspretemporal:Array = new Array();  
for (i=this.id+1; i\<=misClips.length; i++) {  
arrayTemporal.push(misClips_);  
otraspretemporal.push(otrasprecargas\*);  
}  
for (i=this.id-1; i\>=0; i–) {  
arrayTemporal.push(misClips\*);  
otraspretemporal.push(otrasprecargas\*);  
}  
for (i=0; i\<=arrayTemporal.length; i++) {  
arrayTemporal\*.enabled = true;  
}  
misClips[this.index].enabled = false;  
cambiarcolor2(3, arrayTemporal);  
otrosescudos(otraspretemporal);  
cargas(“rr”+this.index+“.swf”, otrasprecargas[this.index]);  
myMCL.loadClip(“rr”+this.index+“.swf”, otrasprecargas[this.index]);  
};  
}  
function cambiarcolor(numero:Number, mc:MovieClip) {  
var cto:Object = new Object();  
if (numero == 0) {  
cto = {ra:100, rb:-97, ga:100, gb:-43, ba:100, bb:-255, aa:100, ab:0};  
}  
if (numero == 1) {  
cto = {ra:100, rb:-255, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};  
}  
if (numero == 2) {  
cto = {ra:100, rb:25, ga:100, gb:-255, ba:10, bb:0, aa:100, ab:0};  
}  
if (numero == 3) {  
cto = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};  
}  
mc.colorTransformTo(cto, 3, “easeOutCubic”);  
}  
function cambiarcolor2(numero:Number, mc2:Array) {  
var cto2:Object = new Object();  
if (numero == 0) {  
cto2 = {ra:100, rb:-97, ga:100, gb:-43, ba:100, bb:-255, aa:100, ab:0};  
}  
if (numero == 1) {  
cto2 = {ra:100, rb:-255, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};  
}  
if (numero == 2) {  
cto2 = {ra:100, rb:25, ga:100, gb:-255, ba:10, bb:0, aa:100, ab:0};  
}  
if (numero == 3) {  
cto2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};  
}  
for (i=0; i\<=mc2.length; i++) {  
mc2\*.colorTransformTo(cto2, 3, “easeOutCubic”);  
}  
}  
function otrosescudos(otrasfiguras:Array):Void {  
for (i=0; i\<=otrasfiguras.length; i++) {  
otrasfiguras\*.\_visible = false;  
}  
}  
cargas(“rr0.swf”, escudo0);]
