Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Actionscript 3 ExternalInterface, Pass variable to javascript?

How would I go about passing a variable to a javascript function using ExternalInterface?

like image 854
Probocop Avatar asked Jan 18 '10 14:01

Probocop


1 Answers

See the doc for external interface call function here

Ex.:

import flash.external.ExternalInterface;
if (ExternalInterface.available){
    ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN);
}
like image 146
Patrick Avatar answered Nov 15 '22 09:11

Patrick