Skip to content

Instantly share code, notes, and snippets.

@chrismendis
Created August 22, 2011 21:22
Show Gist options
  • Save chrismendis/1163632 to your computer and use it in GitHub Desktop.
Save chrismendis/1163632 to your computer and use it in GitHub Desktop.
Run arbitrary JavaScript from ActionScript 3
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