0 Replies Latest reply on Oct 27, 2009 11:26 AM by Cr99

    TweenEffect choppy in full screen

    Cr99 Level 1

      I am using the Distortion Effects from the following library:




      Specifically, I'm doing the cube rotation.  The app is a kiosk that just rotates every five seconds.  It works fine in a small window, but when I do it in full screen, it siezes up right as it's about to finish the rotation.  Sometimes it hangs noticibly for a second or two before completing, but then it does in fact complete eventually but it is extremely bad looking.  Is this just a problem with TweenEffect (which the CubeRotate class extends)?


      Here is the code which calls the CubeRotation:


      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"

      xmlns:controls="com.adobe.ac.controls.*" creationComplete="init()"

      applicationComplete="setFullscreen()" focusRect="false">




      import mx.core.UIComponent;

      import com.adobe.ac.mxeffects.CubeRotate;


      import mx.controls.Alert;



      private var stateTimer:Timer = new Timer(5000);

      public var current:UIComponent;

      public var cr:CubeRotate=new CubeRotate(current);



      private function init():void {

      current = pan1;




      private function setFullscreen():void {

      stage.displayState = StageDisplayState.FULL_SCREEN;

      stateTimer.addEventListener(TimerEvent.TIMER, timerChange);





      private function timerChange(e:TimerEvent):void {



      var sel:UIComponent = detailStack.getChildAt(stateTimer.currentCount %detailStack.numChildren) as UIComponent;


      cr=new CubeRotate(current);








      current = sel;










      <mx:ViewStack id="detailStack" creationPolicy="all" width="100%" height="100%">

      <mx:Panel id="pan1" name="one" width="100%" height="100%" title="Number 1" backgroundAlpha="0.4" backgroundColor="yellow"/>


      <mx:Panel id="pan2" name="two" width="100%" height="100%" title="Number 2" backgroundAlpha="0.4"  backgroundColor="green"/>


      <mx:Panel id="pan3" name="three" width="100%" height="100%" title="Number 3" backgroundAlpha="0.4"  backgroundColor="black"/>