16/08/2007, 09:56
|
| | Fecha de Ingreso: marzo-2007 Ubicación: México
Mensajes: 133
Antigüedad: 17 años, 10 meses Puntos: 0 | |
Re: AS3: no carga en ie7, pls help aqui esta mi codigo, espero sirve de algo:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
stop();
this.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, handleProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, moveOn);
var tweenLoader:Tween;
function handleProgress(e:ProgressEvent){
var percent:Number=
Math.ceil((e.bytesLoaded/e.bytesTotal)*100);
cargador.theMask.scaleX=percent/100;
}
function moveOn(e:Event){
tweenLoader=
new Tween(cargador, "alpha", None.easeInOut, 1, 0, 15);
tweenLoader.addEventListener(TweenEvent.MOTION_FIN ISH, avanzar);
function avanzar(e:TweenEvent){
play();
}
} |