I would like to be able to control a flash movie stream using JavaScript in the same pages as the flash component including:
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