Created
September 17, 2010 04:42
-
-
Save destroytoday/583722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function openLinkInBackground(url:String):void | |
{ | |
NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, applicationDeactivateHandler); | |
navigateToURL(new URLRequest(url)); | |
} | |
protected function applicationDeactivateHandler(event:Event):void | |
{ | |
NativeApplication.nativeApplication.removeEventListener(Event.DEACTIVATE, applicationDeactivateHandler); | |
NativeApplication.nativeApplication.activate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment