Quantcast
Channel: Adobe Community : All Content - AIR Bugs and Performance Issues
Viewing all articles
Browse latest Browse all 1419

orientToBezier not work in TweenMax when -useLegacyAOT=no

$
0
0

The TweenMax orientToBezier do not work correctly on the idevice if I use  -useLegacyAOT=no

 

package
{    import com.greensock.TweenMax;    import com.greensock.easing.Linear;       import flash.display.Sprite;    import flash.display.StageAlign;    import flash.display.StageScaleMode;    import flash.events.Event;       [SWF(frameRate="60", width="960", height="640", quality="LOW", backgroundColor="0x000000")]    public class TEST_TweenMaxRotation extends Sprite    {        private var sp:Sprite;               public function TEST_TweenMaxRotation()        {            super();                       stage.align = StageAlign.TOP_LEFT;            stage.scaleMode = StageScaleMode.NO_SCALE;                       this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);        }               protected function addedToStageHandler(event:Event):void        {            this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);            initApp();        }               private function initApp():void        {            sp = new Sprite();            addChild(sp);                       sp.graphics.clear();            sp.graphics.beginFill(0x0099FF);            sp.graphics.drawRect(-50, -10, 100, 20);            sp.graphics.endFill();                       var path:Array = [{x:600, y:300},                {x:400, y:100},                {x:100, y:500}];                       TweenMax.to(sp, 5, {bezierThrough:path,                                orientToBezier:true,                                ease:Linear.easeNone});        }    }
}

Viewing all articles
Browse latest Browse all 1419

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>