Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Help with AS2 Key Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KrahnikBoi - 31 Jul 2008 22:10 GMT
Hey,

Programming a simple slide show sort of thing.  Space key goes forward,
Backspace key goes back.

So, I found it was missfiring (repeating) sometimes activating on a keyDown.
No problem, I'll attach it to the keyUp.  You can't hold a key up, right?
However, the Backspace key doesn't seem to trigger a keyUp.  Neither does
Enter.  What's up with that?

And thoughts on getting around it?  I mean, I'm planning to use a key that
fires correctly, but . . . seems a little fubar to me.

Thanks.

KB
KrahnikBoi - 01 Aug 2008 00:06 GMT
Me again,

OK, so it works perfectly well when I use an onKeyDown with a Key.getCode()
and assign a Boolean to tell me if it has triggered or not, so it doesn't
fire repeatedly.

Still, I'd like to know why the weirdness was happening with the first
attempt.  I was trying to assign SPACE and BACKSPACE to a String and make it
do it's thing that way.  Some keys worked as expected, but others didn't.

Thanks for the input.

KB

> Hey,
>
[quoted text clipped - 12 lines]
>
> KB
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.