Hello,
Forgive me if this question has been asked over and over. Is it possible to force focus to the flash window upon loading the webpage?
Thank you :)
Printable View
Hello,
Forgive me if this question has been asked over and over. Is it possible to force focus to the flash window upon loading the webpage?
Thank you :)
You have to do some Javascript for this. Cant remember the code though, sorry. Maybe someone can help?
Thanks for the info Francois! Anybody know it off the top of their head?...
I am still struggling to find a way to give the flash window keyboard focus.
I did find a couple of hacks/workarounds but they are incompatible with firefox and therefore unusable.
Having to click within the window first is terribly unprofessional. Has anybody found a solution?
Perhaps you could have a title screen that says "click anywhere to continue", then when you click, it takes the player to the main menu?
I have never had 100% across all browsers when I tried to find a Javascript solution to this.
Title screen method as GreenFrog wrote was what I ended up doing.
Cheers Jeff. I guess I'll have to bite the bullet and go with it. It is gonna hurt though.
Why would it hurt? Lots of flash games have a title screen or menu where you need to click...
I know exactly how I want my page to look and to behave. Having to settle for anything but that hurts.
Oh, it's a web page? In that case, making the menu use only buttons (not necessarily the button object, just objects you need to click on) might work...
Most flash developers/sponsors want you to use the mouse for menu options. Not only does this automatically grant focus when the game starts, but it also works extremely well in increasing the chance of a player clicking an ad.