Controlling a Flash Player using JavaScript

I would like to be able to control a flash movie stream using JavaScript in the same pages as the flash component including:

  • Play and Pause stream
  • Change Stream

I can already load the player and set the flash args, but I don't know how to interact with the player once the stream has started. Is this possible without modifying the SWF that is currently used to play the movie?

Mike.

Answers


The SWF needs to expose functions to Javascript using the ExternalInterface API from the Flash libraries. This allows Javascript to call into Flash and vice-versa.

http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html


Need Your Help

Remove item from dictionary where value is empty list

c# dictionary .net-3.5

What is the best way to remove item from dictionary where the value is an empty list?

How to create System Apps in android

android settings system application-settings system-administration

I want to create an system application(while installing it will ask user permission to make it as system app) for UN-rooted application. As I am not familiar in android, please tell me how to creat...

How can I stop eclipse+git on windows from screwing with file permissions?

eclipse git permissions egit

We have files that should be executable, and are happily executable in git, but then editing and committing the file from Eclipse on Windows results in the file mode being changed to remove