3 Replies - 4102 Views - Last Post: 06 October 2012 - 07:14 AM

#1 purnamar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-April 12

keypress in flash

Posted 29 April 2012 - 09:20 PM

how to make keypress in AS2?example: if i press "A" in keyboard, appears animation button "A" in keyboard flash have been made previously.
Is This A Good Question/Topic? 0
  • +

Replies To: keypress in flash

#2 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 998
  • View blog
  • Posts: 4,175
  • Joined: 14-February 08

Re: keypress in flash

Posted 30 April 2012 - 02:45 AM

What have you attempted already?
Was This Post Helpful? 0
  • +
  • -

#3 Liozamu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-June 12

Re: keypress in flash

Posted 25 June 2012 - 01:14 AM

Have you tried using
if (Key.isDown (Key Value Here))

Was This Post Helpful? 0
  • +
  • -

#4 Funkmachine  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 11
  • Joined: 06-September 12

Re: keypress in flash

Posted 06 October 2012 - 07:14 AM

//87 = W//83 = S // 65 = A // 68 = D
if (Key.isDown(87) || Key.isDown(65) || Key.isDown(68) || Key.isDown(83)) {
// key detected
}
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1