![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/12/2011, 17:42
|
![Avatar de ocesitaro](http://static.forosdelweb.com/customavatars/avatar446511_1.gif) | | | Fecha de Ingreso: diciembre-2011 Ubicación: Carabayllo
Mensajes: 274
Antigüedad: 13 años, 2 meses Puntos: 36 | |
Respuesta: cargando / loading en flash stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS ,precarga);
function precarga(e:ProgressEvent){
trace(e.target.bytesLoaded)
var avance:String;
avance=String(Math.ceil(e.bytesLoaded/e.bytesTotal*100))+" %";
trace(avance)
}
loaderInfo.addEventListener(Event.COMPLETE,finprec arga);
function finprecarga(e:Event){
gotoAndStop(2);
}
y ya juegas con la variable avance divides ya tu ves como modificarlo solo son matemáticas |