Created
October 27, 2010 10:36
-
-
Save cstrahan/648799 to your computer and use it in GitHub Desktop.
AS3 alert function.
This file contains hidden or 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
// Just for future reference, | |
// here's a quick way to interface with the browser's Javascript `alert' function. | |
import flash.external.ExternalInterface; | |
private function alert(text:String):void | |
{ | |
text = text.replace(/\\/g, "\\\\"); | |
ExternalInterface.call("alert", text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment