A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: if no keys are down

  1. #1
    Senior Member
    Join Date
    Mar 2002
    Posts
    308

    if no keys are down

    how do i detect if no keys are being pressed, is that possible?

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    UK
    Posts
    493
    MX:

    mDown=0

    Key.addlistener(this)

    this.onKeyDown=function()
    {
    mDown=1
    trace("Down"+mDown)
    }

    this.onKeyUp=function()
    {

    mDown=0
    trace("up"+mDOwn)
    }


    if mDown==0 then no buttons are pressed

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