Tengo un conflicto de codigo "creo", la verdad q no se mucho de AS pero me imagino q el problema es ese...
A ver si alguien me puede dar una mano con el codigo para q funcione.
Este es el preload del contenido carga swf's...
Código :
function MCcarga() {
this.onEnterFrame = function() {
contenedor._visible = false;
totales = this.contenedor.getBytesTotal();
cargados = this.contenedor.getBytesLoaded();
porcentaje = int((cargados/totales)*100);
trace("cargando");
if (cargados>13 && porcentaje == 100) {
contenedor._visible = true;
_root.prel.bari._visible = false;
_root.prel.caja._visible = false;
this.onEnterFrame = null;
}
if (porcentaje<100) {
_root.prel.bari._xscale = porcentaje*300;
_root.prel.tanto = porcentaje+"%";
trace(tanto);
}
};
Y este me carga unas fotos, es mas largo pero creo q el conflicto esta en this.onEnterFrame...
Código :
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};Espero su ayuda.. gracios.
Saludos..!!!
