I would like to be able to control a flash movie stream using JavaScript in the same pages as the flash component including:
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.
ActionScript is used in Flash and, thus, has the same pitfall of SWF files mentioned earlier, in that it requires the Flash plugin. JavaScript, on the other hand, is readily available in all modern browsers.
There are multiple tools that you can use for Flash to HTML5 conversion, including Adobe Captivate, Lectora Inspire, Adobe Wallaby, Google Swiffy, Sothink – Flash to HTML5 conversion tool, Apache FlexJS and Articulate Storyline. It is a free web editor for Flash to HTML5 conversion.
Flash. js is a simple JavaScript library allowing you to create and handle HTML flash messages. You can try it yourself here.
Choose File > Publish. Flash will now create the <object>, <param>, and <embed> tags for you. It will also create the classid and pluginspage attributes. Open the HTML document that Flash created, view the HTML source, and copy the code into your HTML page where you want your Flash movie.
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
"Is this possible without modifying the SWF that is currently used to play the movie" .. it's only possible if the SWF you are using implements the ExternalInterface with documented functions suitable to your needs - as described by cliff.meyers ... otherwise, .... no
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With