Jump to content

User interaction


djp1988

Recommended Posts

Well without looking at your page and really only guessing from writing similar stuff in JavaScript - perhaps all you need to do is have an onload in your body tag and set the focus to your flash object? If that works - you'll probably need to reset the focus everytime your flash object loses it. So long as you've nothing else that requires focus on your page (like a text field say) - It should be fine.

Link to comment
Share on other sites

Sounds like you have the solution, but i am having trouble making it work, I have tried:

<body onload="swfplayer.focus()">

and

<body onfocus="swfplayer">

swfplayer being the ID of the <OBJECT> containing the flash animation.

Link to comment
Share on other sites

Well I quickly chucked this into IE7:-<embed src="flashthing.swf" onblur="this.focus()">And works fine!But then I tried it in FFox - doesn't work at all? - I messed about for half an hour but still couldn't get it to work. I grew up on IE so you'll need a foxpert to get it to work with fox!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...