3 Replies Latest reply on Jan 5, 2010 6:34 PM by Robert Christensen

    Custom cursor is too slow in FULL_SCREEN_INTERACTIVE

    dingoshark

      My custom cursor is fast in window mode (even maximized) but not in fullscreen where it is really slow.

       

      Is there a solution to this?

        • 1. Re: Custom cursor is too slow in FULL_SCREEN_INTERACTIVE
          Robert Christensen Level 2

          Can you elaborate on what you mean by too slow?If possible, could you put together a simple test case?

           

          Thanks,

          Rob Christensen

          Adobe AIR Team

          • 2. Re: Custom cursor is too slow in FULL_SCREEN_INTERACTIVE
            dingoshark Level 1

            Dear Rob,

             

            Thanks for your answer.

             

            I have put together a simple test case (see attached zip file) and the custom cursor is still "too slow to be usable" in fullscreen mode. Run it and see that the cursor is fast in window mode. Then hit ctrl+enter to go into fullscreen and see how slow the cursor becomes.

             

            Code:

            package

            {

            import flash.events.MouseEvent;

            import flash.events.KeyboardEvent;

            import flash.ui.Mouse;

            import flash.ui.Keyboard;

            import flash.display.StageDisplayState;

            import flash.display.MovieClip;

             

            public class Main extends MovieClip

            {

            private var _mousePointer:MousePointer;

             

            public function Main()

            {

            super();

             

            Mouse.hide();

            _mousePointer = new MousePointer();

            addChild(_mousePointer);

            stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyboardDown);

            stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoved);

            }

             

            private function goFullscreen(fullscreen:Boolean)

            {

            if(fullscreen)

            stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

            else

            stage.displayState = StageDisplayState.NORMAL;

            }

             

            private function onMouseMoved(evt:MouseEvent)

            {

            _mousePointer.x = mouseX;

            _mousePointer.y = mouseY;

            evt.updateAfterEvent();

            }

             

            private function onKeyboardDown(evt:KeyboardEvent)

            {

            if(evt.controlKey && evt.keyCode == Keyboard.ENTER)

            goFullscreen(stage.displayState == StageDisplayState.NORMAL);

            }

            }

            }

            • 3. Re: Custom cursor is too slow in FULL_SCREEN_INTERACTIVE
              Robert Christensen Level 2

              Thank you for including this. I have submitted a bug internally on this issue. Our team will try and reproduce it. Thank you!