acekz,
You can capture keypress in Flash using get key code like this
var key_obj:Object = new Object();
key_obj.onKeyDown = function()
{
if (Key.getCode() == 116)
{
getURL ("javascript:stop_refresh ();");
}
};
Key.addListener (key_obj);
The logic is to capture the keypress and try to pass it to javascript,
the function that you have already written.
I am not sure if this works but you may try.
However I do agree with what kiranvj said.
And what if the user is not using IE, say Camino which don't use F5 for refresh?
And what if the user have customized the browser hotkeys?
Cheers
Vicker
Main Topics
Browse All Topics





by: kiranvjPosted on 2007-02-16 at 18:55:21ID: 18553691
what if the user refreshes by clicking the refresh button.