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 which of the recommended character to use to separate target level paths levels?
Sometimes, if I do not move the mouse, "click" and "mousedown" do not work. Why is that? : adobe flex action script
Can I still purchase flex charting?
What is shared object?
What is interface or benefit of interface in term of oop? : adobe flex action script
What are runtime shared libraries in flex? : adobe flex action script
What is a filter function?
Will the flex skin extensions for cs be part of the flex 3 release?
What is the model-view-controller (mvc) pattern?
What is interface in term of oop (flash actionscript)? : adobe flex action script
How does item renderer work? How do we add item renderer at runtime in flex?
Explain how binding works in mxml components in flex?