I want to get JavaScript variable value to AS2 in simple.
JavaScript
var myNewText = 'new variable value created';
var myNewLink = 'www.stackoverflow.com';
How to get vars values in AS2 like this?
myText.text = myNewText;
myText.onRelease = function() {
getURL(myNewLink);
}
To call a Function I use some like this:
// AS2 code
myText.onRelease = function() {
ExternalInterface.call("my_function()");
}
//JS function
function my_function() {
alert("This function is called from ActionScript!");
}
after googling alot i have that & it works good :)
in JS
in AS2