Speaking with JavaScript
With ActionSpeak any JavaScript function can be called from ActionScript, and any ActionScript function can be called from JavaScript. Additionally, any variable can be get or set from either language to the other. To allow this, you must Install ActionSpeak™ into the Flash Movie.
Calling JavaScript from ActionScript
The ActionSpeak.CallJavaScript(expression) function not only executes the JavaScript – but returns the return value back to ActionScript. For security reasons – this only works when running in the context of an ASP.NET website.
Calling a JavaScript function in ActionScript
[ActionScript]
Setting a JavaScript variable in ActionScript
[ActionScript]
Returning a JavaScript variable to ActionScript
[ActionScript]
Calling ActionScript from JavaScript
Calling ActionScript using JavaScript requires the use
of functions in the JavaScript
API.
- CallFlashFunction()
- GetVariable()
- SetVariable()