Actionscript 3 ExternalInterface, Pass variable to javascript?
Asked Answered
M

1

6

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

Milone answered 18/1, 2010 at 14:6 Comment(0)
P
13

See the doc for external interface call function here

Ex.:

import flash.external.ExternalInterface;
if (ExternalInterface.available){
    ExternalInterface.call("myJavascriptFunction", argument1, .., argumentN);
}
Parke answered 18/1, 2010 at 14:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.