var aLoadPelObj:Array = new Array();
var aLoadPelNom:Array = new Array();
var bchg:Boolean = false;
_root.avp1 = _root.dir1+"epena1"+sVers+".swf";
_root.avp2 = _root.dir1+"betty_mov"+sVers+".swf";
_root.vchi = _root.dir1+"vchidr"+sVers+".swf";
_root.vcci = _root.dir1+"vccist"+sVers+".swf";
_root.vcdi = _root.dir1+"vcdisp"+sVers+".swf";
aLoadPelObj[0] = _root.avp1;
aLoadPelObj[1] = _root.avp1;
aLoadPelObj[2] = _root.vchi;
aLoadPelObj[3] = _root.vcci;
aLoadPelObj[4] = _root.vcdi;
aLoadPelNom[0] = "Avatar - 1";
aLoadPelNom[1] = "Avatar - 2";
aLoadPelNom[2] = "Camion Hidrante";
aLoadPelNom[3] = "Camion Cisterna";
aLoadPelNom[4] = "Camion Dispencer";
onClipEvent (enterFrame) {
if (_parent._parent.bchg == false) {
total = _root.getBytesTotal();
carga = _root.getBytesLoaded();
} else {
total = _parent._parent.loadMovies.getBytesTotal();
carga = _parent._parent.loadMovies.getBytesLoaded();
}
porcentaje = Math.round(carga / total * 100);
por = porcentaje + " %";
if (carga == total) {
_parent._parent.bchg = true;
if (nx == _parent._parent.aLoadPelObj.length) {
_parent.gotoAndPlay("p2");
} else {
pelnom = "Componente : " + (nx + 2) + " / " + nAcu;
pelnomd = _parent._parent.aLoadPelObj[ni];
_parent._parent.loadMovies.loadMovie(_parent._parent.aLoadPelObj[ni]);
}
ni++;
nx++;
}
}
pero al cargar en mi cargador tengo un problema de NaN pero... en ie me funciona bien pero en chrome ni firefox me funciona