Action Script: on keypress event

  • Started
  • Last post
  • 0 Responses
  • CyBrainX

    First of all, Flash MX 2004 is the hardest upgrade I've dealt with in my 12 years using graphic software.

    Is there anything wrong with this button script?

    on (release) {
    music = "off";
    stopAllSounds();
    }
    on (keyPress "s") {
    music = "off";
    stopAllSounds();
    }

    The release part works, but not the keyPress. This worked find in Flash 5 and Flash MX, but not 2004. (exporting to Flash 6)

    Do I have to put both mouse events in one statement?

    Do I have to specify the ascii code for "s"?

    Thanks in advance.