Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/09/2009, 19:24
birdaleja
 
Fecha de Ingreso: junio-2009
Ubicación: mexico
Mensajes: 106
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: algo rArO...framerate y depurador AS3

si claro que los enterFrames corren todo el tiempo pero de ahi a que el framerate baje solo...bueno, aqui estan los enterFame, basicamente son parecidos, cambian las posiciones y rotaciones segun el puntero del mouse (ya probe con MOUSE_MOVE y no esta bien):

private function inicio():void
{
this.addEventListener(Event.ENTER_FRAME, movCont);
this.addEventListener(Event.ENTER_FRAME, movComp);
this.addEventListener(Event.ENTER_FRAME, movBio);
this.addEventListener(Event.ENTER_FRAME, movSom);
}
private function movCont(e:Event):void
{
var distY:Number = mouseX / stage.stageWidth;
var distX:Number = mouseY / stage.stageHeight;

if(countOver != 1){
TweenLite.to(contenedor,2, {
rotationX:25 - (50*distX),
rotationY:-25 + (50*distY),
rotationZ:10,
x:(stage.stageWidth / 1.78)-(distY*70),
y:(stage.stageHeight / 1.09)-(distX*70),
ease:Expo.easeOut
});
}
if(countOver == 1){
TweenLite.to(contenedor,2, {
rotationX:25 - (50*distX),
rotationY:-25 + (50*distY),
rotationZ:10,
x:(stage.stageWidth / 2)-(distY*70),
y:(stage.stageHeight / 1.5)-(distX*70),
ease:Expo.easeOut
});
}
}


gracias y
suerte!