5 Replies Latest reply on Apr 11, 2011 6:32 AM by kglad

    Button "Down" Frame on KeyPress?


      Hey guys!


      I'm making a Flash piano for a school project and I've got everything working perfectly except for the keystrokes.


      The piano keys are button symbols.

      When I click on the C button on the virtual piano, it plays a C note and presses down the button.

      When I press the "a" key on my keyboard, it plays a C note but doesn't press down the button.

      How can I get it to look like the mouse clicked it when I press "a"? This is what I have on the key right now (and bare with the simple coding; my teacher doesn't do anything harder than what's below):


      key1 = new Sound();
      LowCkey.onPress = function() {


      on (keyPress "a") {


      Thanks in advance!