0 Replies Latest reply on Aug 28, 2008 12:46 PM by Kol-001

    Screen Click

    Kol-001
      Hi,

      I'm using AS 2.0 for this.

      I have a set of buttons on screen but want to check if the user clicked anywhere else on screen and if so issue a prompt to tell them to click on one of the buttons.

      I'm thinking along the lines of:

      check if the mouse button is pressed and use the switch statement to action any button presses with the 'default' option to be actioned if no matching button presses were recognised....

      anybutton(onRelease)????
      (use a listening event???)

      switch (anybutton)
      case btn1:
      //button one clicked
      do something
      break
      case btn2:
      //button two clicked
      do something else
      break
      default :
      //this is the click anywhere else on screen case
      show a prompt on screen to tell user to ckick on buttons
      break

      Just can't get my head round the actual code at the moment!!!

      hope you can help

      cheers

      Kol