Jump to content
Search Community

ilanb

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by ilanb

  1. Thanks greensock for the tips, I have tested like this and work fine: import com.greensock.*; import com.greensock.easing.*; addEventListener(Event.ENTER_FRAME, lancement); function lancement(e:Event):void{ if (mouseX>=275){ TweenMax.to(plante, 1.1, {frame:82}); } if (mouseX<275){ TweenMax.to(plante, .5, {frame:1}); } } stop(); Thanks
  2. Hello, I have simple clip with 36 frames, I use this code to play timline: plante.addEventListener(MouseEvent.CLICK, fstop); function fstop(event:MouseEvent):void{ plante.stop(); } addEventListener(Event.ENTER_FRAME, lancement); function lancement(event:Event):void { if (mouseX>=275){ plante.nextFrame(); } if (mouseX<275){ plante.prevFrame(); } } I would like to know if it's possible to add tween for moore smoothing playing. I think used frameLabel and useFrames parameters but how to ? Thanks for help
×
×
  • Create New...