A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Using MouseEvent and KeyboardEvent on the same function

Hybrid View

  1. #1

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    373
    Do I add it like this?

    stage.addEventListener(KeyboardEvent.KEY_DOWN, slideRight);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, slideLeft);

    I've been reading through a bunch of different tutorials to figure out how to do this and this is the closest I've found although I'm still confused as to how to target the left and right arrow keys to enable the functions.
    Adam Bell
    [email protected]
    --
    Over 90% of all websites
    suck......
    Join the minority.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center