Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling keyboard controls

Status
Not open for further replies.

spencewaa

Technical User
Aug 4, 2011
2
0
0
GB
hi all,

there maybe an obvious solution to this but i cant for the life of me find it!

Basically i want to put a flash game i made on my website as a .swf. the arrow keys in the game control the character. the problem is when pressing up or down, I'm also scrolling the page, which is at best irritating!

I am using Dreamweaver CS5.

Any advice would be greatly appreciated, much love

Spencewaa
 
you cant do this.

what you can do is maybe use javascript to put the focus on the game so that the arrows would correspond to that.

but this is speculation.

Darryn Cooke
| Marketing and Creative Services
 
Ah ok, I'll look into that, Thanks Darryn.
I'm thinking it would probably easier to just switch the the control keys in the game to w,a,s,d or something, but will give both a go as i need to brush up a bit on my javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top