Trigger javascript functions from Flash

Posted under » Flash » JavaScript on 13 March 2009

First you're going to need to put your javascript function between the head tags of your document. For this example, I've used the following function:

function myfunction() {
   alert("This function was successfully triggered via the flash movie.");

In HTML, you can trigger it by putting something like below.

Trigger the alert

In Flash, it is about the same.

Here is an example to trigger javascript using AS2.


In AS3 however, it is more tedious. You can look here from the source.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS IOT