Skip to main content
Known Participant
October 27, 2006
Answered

has onKeyDown been depreciated?

  • October 27, 2006
  • 3 replies
  • 380 views
Has onKeyDown been depreciated for actionscript 2.0 or is something wrong with my code? my code is on it's own frame in a single frame timeline on level0. none of these traces are working.
This topic has been closed for replies.
Correct answer kglad
you need to define the addListener method to your broadcasting object (the Key class):

3 replies

kglad
Community Expert
Community Expert
October 27, 2006
you're welcome.
Known Participant
October 27, 2006
and if it has been depreciated, how would i do the same thing with 2.0?
Known Participant
October 27, 2006
and if it has been depreciated, how would i do the same thing with 2.0?
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 27, 2006
you need to define the addListener method to your broadcasting object (the Key class):

Known Participant
October 27, 2006
holy crap, you just made my day!
many thanks,
eirik