/ Published in: ActionScript 3
This little snippet will solve the problem with Firtefox not reloading when you press F5 if this focus is in the flash embed in the browser.
Expand |
Embed | Plain Text
//Place this in the import section. import flash.external.ExternalInterface; //Place this some where in your code where you can access the stage object. stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandlerfunction); private function keyHandlerfunction(e:KeyboardEvent):void { if (e.keyCode == 116) { ExternalInterface.call("window.location.reload()"); } }
You need to login to post a comment.
