views:

428

answers:

1

Hi,

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

+4  A: 

See the doc for external interface call function here

Ex.:

import flash.external.ExternalInterface;
if (ExternalInterface.available){
    ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN);
}
Patrick
Finally an example of multiple parameters. Thanks!
Orolin