PDA

View Full Version : Js & as


inpen
04-16-2012, 06:29 AM
Hello ActionScript friends! My name is Ignacio, i'm from Argentina and i'm seeking for some help in the JS and AS field.

I have an assingment to do by tomorrow morning, and i'm a little stuck with this particular question.

There is a Javascript function called “clickMe”, write out the ActionScript that would call the function “clickMe” in a button named “adButton”.

Could anyone help me please?
many thanks in advanced!

wvxvw
04-16-2012, 09:53 AM
You should look into ExternalInterface class, it's call() method in particular. Calling a JavaScript function would be:
ExternalInterface.call("javaScriptFunction");
assuming in the JavaScript you have:
function javaScriptFunction() { /* do stuff */ }