Return to Snippet

Revision: 35565
at November 10, 2010 09:32 by StevenW721


Initial Code
var runJavascript:URLRequest = new URLRequest("javascript:javascriptFunction()");
navigateToURL(runJavascript, "_top");

Initial URL


Initial Description
Short and sweet, add the following two lines where you want to trigger a javascript function. Just change the javascript denoted in the code by "javascriptFunction()" with whatever you want to call. Also jsut in case make sure you have the allowScriptAccess parameter set to "always".

Initial Title
Trigger Javascript from Flash with AS3

Initial Tags
javascript, actionscript, function

Initial Language
ActionScript 3