Lock keyboard input inside the flash area (IE)

Hello everybody! I’m new at this forum, but I’ve used good resources from this community in the past. I guess that its time to play a more active part here :slight_smile:

So, I’d like to share an issue that I’ve found some time ago. The scenario is quite ordinary: I have a Flash game that uses keyboard as the input method (the cursor keys, to be more exactly). So, as soon the flash player’s area receives the input focus, the expected behavior is that pressing the cursor keys will only have any effect inside the game’s area.

That said, I’m sure that some of you have already figured out what my problem is: using Internet Explorer, pressing the cursor keys does not only affect the game, but also scrolls the navigator’s window! This flash movie is embedded in a big page (with lots of images), so this problem is noticeable at resolutions as high as 1024x768. The thing is that I used Firefox most of the time for testing, and this issue is not present there. I also work on a higher resolution, so I didn’t noticed this by myself, even when I ran the game inside IE.

My question is… Do you know a way to solve this problem? I can barely remember experimenting an issue like this a few years ago, with older versions of the Player (Flash 7, probably). I think that some JavaScript did the trick, but I can’t find the exact code behind the magic. But perhaps that’s not even the solution I’m looking for.

Well, if anyone can bring me a clue, I’d really appreciate it :slight_smile:

Thanks in advance. I apologize for my dense post, and also for my quite ugly English.