Skip navigation
Currently Being Moderated

goto and stop using keyboard buttons?

Sep 19, 2012 8:51 AM

Hi,

 

Is this possible...

 

Got a simple presentation using go to and stop on frame label. It scrolls through the presentation pages via the forward and back buttons.

 

However is it possible to use the keyboard forward and back buttons to control the forward and back movement of the pages.

 

This is a last minute request from my client..so looking for a simple solution if possible.

 

Thanks

 
Replies
  • Currently Being Moderated
    Sep 19, 2012 9:00 AM   in reply to janineabc

    You can assign a listener for the keys, though I am not sure what you are considering to be the forward and back buttons for the keyboard...

     

    var keyListener:Object = new Object();
    Key.addListener(keyListener);

     

    keyListener.onKeyDown = function(){
       if(Key.getCode() == Key.LEFT) trace("left");  // replace the traces with your goto commands
       if(Key.getCode() == Key.RIGHT) trace("right");
    }

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 19, 2012 10:10 AM   in reply to janineabc

    You're welcome

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points