|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dont give the focus to flash
I use javascript to detect keys on the keyboard so that some buttons in the html are hotkeys. My script makes it so that if the user presses on an html button, it sends a command to flash and plays an animation. The hotkey for that button would be "e" for example.
Problem is, if the focus is on the swf, the user cannot use hotkeys until it clicks elsewhere in the html file. Let me mention that their is alot of changes of focus between html and swf. So I thought about using a OnClick="window.document.somebutton.focus()" on the swf so I'm always focused on the html after the user clicked in the swf, but it won't set the focus anywhere else ![]() Is there anyway to keep the focus on an html element all the time even when an swf was clicked? |
|
#2
|
||||
|
||||
|
Have you tried using javascript commands within the flash file?
|
|
#3
|
|||
|
|||
|
I did try but to tell the truth not a lot
Mainly because I didn't quite know where to go from there. Would this mean sending a keycode from flash to javascript and call a js function? Sounds good to me but im not quite sure how... |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Dont give the focus to flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|