7 Replies Latest reply on Jun 4, 2008 11:42 AM by adam000

    getAscii Issue

    adam000 Level 1
      Hi,
      I'm trying to create a CBT and on frame 9 the user needs to press F9 to advance to frame 10. Here is the code I have put in and it doesn't seem to be working.
      I used the keyTester to find out that F9 = 120...

      var myListener = new Object();
      myListener.onKeyDown = function () {
      var myKey = Key.getAscii();
      if (myKey == 120) {
      gotoAndPlay(10);
      }
      }
      Key.addListener(myListener);
      stop();

      Thank you,
      Adam