Calling external javascript on button click in Flash

Calling external javascript in flash is really easy. just follow the guidelines given below:

create a flash button in flash.

single click on the flash button and open the action script window related to the flash button.

in the action script window please write down the following action script:

on (release) {
getURL(“javascript:JavascriptFunction();”,”_self”);
}

where JavascriptFunction() is the external javascript function that is to be called by the click of the flash button.

If you have any queries or questions please do contact me.

Thanks,

Sachin (samsami2um@gmail.com)

Advertisements