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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s