0 Replies Latest reply on Aug 4, 2016 6:48 PM by nasers48644153

    back Button

    nasers48644153 Level 1

      Hi Every one.

      Back button not working in flash builder 4.6 (air sdk 22)

      Here is my code
      private function creationCompleteHandler(event:FlexEvent):void {

      systemManager.stage.addEventListener(KeyboardEvent.KEY_DOWN, _onKeyDown);

      systemManager.stage.addEventListener(KeyboardEvent.KEY_UP, _onKeyDown); }

       

      private function _onKeyDown(event:KeyboardEvent):void {

      if (event.keyCode == Keyboard.BACK) {

      event.preventDefault();

      event.stopPropagation(); } }

       

       

      <s:Button id="hii" keyDown="_onKeyDown(event)" label="Go Back" />

       

      Please can some one help how i can make it workable?

       

      Thanks in Advance.