GroupBrowser  




Go Back   GroupBrowser > Macromedia Newsgroups > Flash > Flash Actionscript
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

Release Key check
Old 11-20-2008, 10:14 PM #1
Tomboyo
Guest
 
Status:
Posts: n/a
Default Release Key check

How do I check when the UP key is released? I've tried using keyUP but couldn't get it to work.

Thanks for any help you can provide!
  Reply With Quote

Re: Release Key check
Old 11-21-2008, 02:39 AM #2
kglad
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

:



var LO:Object=new Object();

LO.onKeyUp=function(){
// do whatever
}
Key.addListener(LO)
  Reply With Quote

Re: Release Key check
Old 11-21-2008, 07:32 PM #3
Tomboyo
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

How exactly do I put that in and specify that it should be the "UP" key?
  Reply With Quote

Re: Release Key check
Old 11-22-2008, 04:43 PM #4
Tomboyo
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

I don't know how to check for the up key. I don't know much actionscript, for
that matter,so if you could write it out in code, it would be very, very
helpful. Thanks for the help so far, I appreciate it!

  Reply With Quote

Re: Release Key check
Old 11-23-2008, 12:00 AM #5
kglad
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

:



var LO:Object=new Object();

LO.onKeyUp=function(){
if(Key.getCode()==38){
// do whatever
}
}
Key.addListener(LO)
  Reply With Quote

Re: Release Key check
Old 11-23-2008, 02:25 PM #6
kglad
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

did you change the comment? if you're testing in the flash test environment, did you disable keyboard shortcuts?
  Reply With Quote

Re: Release Key check
Old 11-23-2008, 05:18 PM #7
Tomboyo
Guest
 
Status:
Posts: n/a
Default Re: Release Key check

I disabled keyboard shortcuts and copied it exactly as you had yours, under the
onEnterFrame function, like this:



function onEnterFrame()
{
var LO:Object=new Object();
LO.onKeyUp=function()
{
if(Key.getCode()==Key.UP)
{
this.removeMovieClip();
}
}
}

  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Adobe Newsgroups | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.