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 how many levels does flash mx support?
can you write to the file system from flex?
How do we call javascript from flex actionscript?
Ow binding works in mxml components in flex? : adobe flex action script
What is the problem with calling setstyle()? : adobe flex action script
Explain about different types of channels available in blaze ds?
What is a view cursor?
Can I continue to run flex builder 2 in parallel with flex builder 3 beta 3?
What are the advantages of adobe flex?
I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
What happens if an .swf is loaded into a already occupied level?
What are types of binding?