Registering Clicking with AS

Discussion in 'Graphics & Multimedia' started by nickjason, Mar 12, 2010.

  1. #1
    I know how to register clicking on buttons with on(press){. Is there any way to use action script to check if a mouse button is down, anywhere on the canvas? Thanks for any help!
     
    nickjason, Mar 12, 2010 IP
  2. webrotate360

    webrotate360 Greenhorn

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    I guess one way to approach this is to register for mouse up/down with your stage instance and then update some variable in the event handlers that will be accessible globally or wherever you need it.
     
    webrotate360, Mar 12, 2010 IP