How do we call javascript from flex actionscript? : adobe flex action script
Answer / Ashish Soni
To call JavaScript from ActionScript, you can use the ExternalInterface class. Here's a simple example:
```actionscript
ExternalInterface.call("myFunction", myData);
function myFunction(data) {
// do something with data (JavaScript side)
}
```
In this example, the call to 'myFunction' invokes a JavaScript function named 'myFunction', and passes it the variable 'myData' from ActionScript.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about measure() method? When this measure() method is called?
What is the dynamic keyword used for in flex actionscript? : adobe flex action script
How do we add item renderer at runtime in flex? : adobe flex action script
What is default frame rate of the timeline in frame per second?
What is the problem with calling setstyle()? : adobe flex action script
What is polymorphism in term of oop (flash actionscript)?
When I add or modify an item in my dataprovider, why does not it show up in my datagrid? : adobe flex action script
What is a resource manager in flex actionscript?
How do I pass parameters to a pop-up window in actionscript? : adobe flex action script
Difference between stoppropagation and stopimmediatepropagation()?
What is default frame rate of the timeline in frame per second? : adobe flex action script
Explain in which level does the original movie resides?