Created
August 22, 2011 21:22
-
-
Save chrismendis/1163632 to your computer and use it in GitHub Desktop.
Run arbitrary JavaScript from ActionScript 3
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
import flash.external.ExternalInterface; | |
var docTitle:String = ExternalInterface.call("function () {return window.document.title;}"); | |
ExternalInterface.call("alert", "Alerting an Actionscript variable: " + docTitle); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment