3 Replies Latest reply on Jul 11, 2006 10:04 AM by CDogg79

    Help with Key Listeners

    CDogg79
      First I'd like to say thank you to anyone that can help me out with this.

      I've set up a key listner and it works fine with the space bar but I want to use the number keys to control it instead. Numbers 1, 2, 3 and 4 to be exact and I was wondering how I would need to change my code to have it listen for those numbers.

      Here is my code so far:

      this.onEnterFrame=function()
      {
      if(Key.isDown(Key.SPACE))
      {
      One_Buzzed_In._visible = true;
      buzzed = new Sound(this);
      buzzed.attachSound("buzzer");
      buzzed.start(0, 1);
      }
      }

      Thanks again for any help.