How do I pass a variable to a javascript function using ExternalInterface?
See the document for the external call interface function here
Example:.
import flash.external.ExternalInterface; if (ExternalInterface.available){ ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN); }