Beau,

the issue of key trapping is somewhat deeper that just overriding the
default browser / system keys. Flash Player behaves differently in IE and
Firefox. In IE, browser has focus all the time disregarding has the Plash
Player (ActiveX) got the forus or not. In Firefox, browser completely loses
focus as soon as Flash Player get it. For example, in Firefox, try to click
on the Flash object and then press Ctrl+R (page refresh). Surprise: nothing
happens even if you don't override this key sequence in your flash app. Not
very good.

I think IE behavior is much more correct (despite the fact I'm an Firefox
addict). By default, this is not good when browser's user loses control
(from his point of view) when you reassign F5 in your app.

Generally (I'm starting daydreaming here), I think there's should be the
possibility to allow developer to decide which browser behavior his concrete
app should use. For example, if your flash app is truly an Application
(Game, Fullscreen Editor etc) it is logical to override the browser's
values. But if your flash is just a small part of page (microgame, intro or
banner) this could be a bit overkill to hook the brower's key defaults. So
when embedding his app in html developer should might use the option like
<appMode="standaloneApp | embeddedApp"> or somethink like this.

We haven't got such option, but we have this old trapAllKeys fscommand:
http://www.adobeauthorizations.com/livedocs/flex/2/langref/flash/system/package.html


---
Rost
http://en.flash-ripper.com/




2007/9/28, Beau Scott <[EMAIL PROTECTED]>:
>
>  I'm making a flash application and am setting up various hot-keys for
> certain interactions. I've run into a problem where IE won't trap certain
> hot keys (reserved ones like F5 = Refresh, etc) and am wondering if there's
> a way to trap it from within flash or some other work around to prevent the
> default behavior of the key? Example: if you hit F5 within a flash app – in
> Firefox it traps the keystroke and the page does not refresh, but in IE it
> does.
>
>
>
> TIA,
>
>
>
> Beau
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>


-- 
----
Rost
http://flash-ripper.com/
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to