Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/03/2008, 14:07
malala
Usuario no validado
 
Fecha de Ingreso: noviembre-2002
Mensajes: 6
Antigüedad: 21 años, 5 meses
Puntos: 0
Carga de swf en Firefox

Hola, soy nueva acá y quisiera saber si me pueden ayudar con lo siguiente:
Tengo un script que carga swf externos, la carga funciona perfectamente en explorer pero no en firefox, presiento que hay algo mal en el código pero no puedo saber que es, gracias... aqui le copio el codigo

function iniciarCarga(target, swf) {

this._visible = true;
cargador.obj_target = target;
var obj = eval(target);
cargador.loadedBytes = -1;
cargador.totalBytes = 0;
obj.loadMovie(swf);
cargador._alpha = 80;

cargador.onEnterFrame = function() {

cargado = true;
var obj = eval(this.obj_target);
obj.stop();

this.totalBytes = obj.getBytesTotal();
this.loadedBytes = obj.getBytesLoaded();

this.porcentaje = Math.round((this.loadedBytes*100)/this.totalBytes);
this.status = this.porcentaje+"%";

if (this.porcentaje>=100 && cargado) {

trace ("termina")
this._visible = false;
delete this.onEnterFrame;

obj.play();
} else {


this._visible = true;
this.bar.gotoAndStop(this.porcentaje);


}

};
}cargado = false;

cargador._visible = false;