Example: Javascript Communication
To watch this video, you need the latest
Flash-Player and active javascript in your browser.
Javascript Communication
You can use the following methods to communicate with the player via javascript:
Callback Functions
-
Callback function and parameters for the video start:
flashvars.onstart = "functionName,param1,param2,...";
-
Callback function and parameters for after the video has completed:
flashvars.oncomplete = "functionName,param1,param2,...";
See the souce-code of this site if you want to know how the movie was embedded.
Important Note:
If you want to test this example offline on your computer, you have to go to the Flash Player Security Settings and give permission to the folder where these files are located on your machine.