PDA

View Full Version : Stop html page from scrolling on arrow keys



sleepingmask
October 3rd, 2010, 01:18 AM
Hey! I'm new here, so I apologize if this is the wrong part to post this, but I have an issue:
I've made a flash I Spy game, and I'm trying to embed it in Dreamweaver (which I'm quite awful at).
I used the obvious Insert>Media>Swf
That's all fine, except when I open the page in IE, it's impossible to play the game, because the arrow keys cause the page to scroll. Normally (on addictinggames.com ect) it goes that you click on the game to "activate" it, and then keyboard pressed are ignored by the browser and sent straight to the SWF.
But I can not make it WORK! (frustration.):*(
Ideas?

SticksStones
October 5th, 2010, 08:57 PM
ideas?...erm...no not really. It's not something I've ever come across. What browser are you using or have you tried several?

I wouldn't be surprised if Dreamweaver is making a mess of it.

The only thing I can think of that might affect it is the window mode (wmode) setting...normally a flash app sits in a window on top of the browser, rather than really being part of the page like it appears. This can be altered with the opaque and transparent windowless settings....you'll want the normally default "window" mode.

You can use "publish" in flash File/Publish. Which creates a swf and a html file with javascript that should attempt to get it working correctly on whichever browser.