

Here's a function that retrieves the Flash movie. Window // (on Internet Explorer as of ver 5)ĭocument.embeds // Mozilla Netscape, Firefox or Opera window.document // (on Mozilla browsers such as Netscape) The Flash movie object can be referenced several ways depending to the browsers. (In Internet Exporer (IE), a Flash object as actually an COM object or an ActiveX object.) Read more about it here.

Within the html page, a Flash movie is just an "object," much like a window, a form elements, or an image. When a button is clicked, it "connects" to the Flash movie. The buttons are associated with JavaScript function calls. The controller buttons are all standard html element. This tutorial is intended for Flash 4 or better.īelow, you see a Flash movie, and a JavaScript controller. Other browsers and Macintosh browsers might have problems running this. This tutorial has been tested on Netscape 4.7, Netscape 7, Internet Explorer 5, Internet Explorer 6, Firefox 1.04, and Opera 8, for the PC. Your browser must be JavaScript enabled to see this example. This example is intended to show various JavaScript methods (functions) that can be used to interact with a Flash movie. One of the more wonderful Flash capability is its ability to communicate with JavaScript.
