
Is there a better way of creating a smoother tween?
Here’s my code…
this.addEventListener(Event.ENTER_FRAME, ballFloat); private function ballFloat(event:Event):void { var myTweenX:Tween = new Tween(this, “x”, Regular.easeOut, this.x, randomXBoundary, 10, true); TweenX = myTweenX; }// end of ballFloat function
If you would like to make a comment, please fill out the form below.
Try - updateAfterEvent();
Change your method as below -
private function ballFloat(event:Event):void
{
event.updateAfterEvent();
var myTweenX:Tween = new Tween(this, “x”, Regular.easeOut, this.x, randomXBoundary, 10, true);
TweenX = myTweenX;
}// end of ballFloat function