Flash movies can also be controlled via JavaScript. Among other things, you can start, stop, and pause the movie. For these purposes, the plug-in exposes the Play(), Rewind(), and StopPlay() methods. The following listing implements a simple control station for the Flash movie: Accessing a Flash Movie from JavaScript (flash.html)
Note The allowScriptAccess options set in both the <object> and the <embed> elements allow JavaScript to actually access the Flash movie. |