| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2003
Posts: 17
|
Hi! I have a code that captures keypresses. It works ok if only one key is pressed but I need to capture multiple keypresses. Like ctrl + shift.
I tried using a AND (&&) statement on the if then else statement but it doesn't work. Here's my code: PHP Code:
Last edited by CyanBlue; 09-27-2004 at 03:45 PM.. Reason: PHP tag is applied |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
Howdy...
Here you go... ![]() ActionScript Code:
Please use code formatting so that the code could be more readable... ![]() Keyword: ctrl up down cbctrl cbup cbdown multiplekey cbmultiplekey
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2003
Location: bangalore
Posts: 23
|
Is there any way to trap alt key in flash.
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Jan 2003
Posts: 17
|
It works! Thanks a lot!
|
|
|
|
|
|
#5 | |
|
Addicted To FLASH
|
Quote:
ActionScript Code:
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Mar 2003
Location: bangalore
Posts: 23
|
actually what i was searching is to disable the user from pressing Alt+F4. is there any way to do tat ?
|
|
|
|
|
|
#7 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
I am not 100% sure, but I think there are some projector tools that supports the functionality... Check out SWf Studio or ScreenWeaver and others if you are looking for the projector solution...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#8 |
|
Addicted To FLASH
|
I don't think so Cyan, it's a system matter not a flash matter, so, the system will over write yours
same like the fscommand(toggle.....
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
#9 |
|
Addicted To FLASH
|
or see this thread:
http://www.actionscript.org/forums/s...threadid=15167
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
#10 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
Oh... All I was saying meant to search those projector tools...
I know that you can trap the key combination such as Alt-F4 in Director with the support of some Xtras... So, basically that key trapping has been done in C/C++... That means the projector tools should be able to have that sort of options... If those projector tools do not support that functionality, that just means that the company is not thinking of that feature or they are just plain lazy...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|