6

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

Probocop
  • 10,346
  • 28
  • 85
  • 115

1 Answers1

13

See the doc for external interface call function here

Ex.:

import flash.external.ExternalInterface;
if (ExternalInterface.available){
    ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN);
}
Patrick
  • 15,702
  • 1
  • 39
  • 39