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


"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


Need Your Help

Rake task seems not to write files in a Docker container

ruby-on-rails ruby-on-rails-4 docker boot2docker docker-compose

I'm trying to run my Rails app in production locally as part of platform migration. I'm using Docker with Docker Compose.

Error: spawn ENONT appearing randomly (streams related)

node.js amazon-s3 stream pipe

I am using Nodejs streams to download a file from S3 and pipe directly to a local folder as a writable stream. Once the local file is saved, I do some additional processing to re-size the local fil...