How do we call javascript from flex actionscript? : adobe flex action script



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

Post New Answer

More Adobe Flex Interview Questions

Explain about measure() method? When this measure() method is called?

1 Answers  


What is the dynamic keyword used for in flex actionscript? : adobe flex action script

1 Answers  


How do we add item renderer at runtime in flex? : adobe flex action script

1 Answers  


What is default frame rate of the timeline in frame per second?

1 Answers  


What is the problem with calling setstyle()? : adobe flex action script

1 Answers  


What is polymorphism in term of oop (flash actionscript)?

1 Answers  


When I add or modify an item in my dataprovider, why does not it show up in my datagrid? : adobe flex action script

1 Answers  


What is a resource manager in flex actionscript?

1 Answers  


How do I pass parameters to a pop-up window in actionscript? : adobe flex action script

1 Answers  


Difference between stoppropagation and stopimmediatepropagation()?

1 Answers  


What is default frame rate of the timeline in frame per second? : adobe flex action script

1 Answers  


Explain in which level does the original movie resides?

1 Answers  


Categories