Connecting with External Sources > Sending messages to and from the Flash Player

 

Sending messages to and from the Flash Player

To send messages from a Flash movie to its host environment (for example, a Web browser, a Macromedia Director movie, or the stand-alone Flash Player), you can use the fscommand action. This action lets you extend your movie by using the capabilities of the host. For example, you could pass an fscommand action to a JavaScript function in an HTML page that opens a new browser window with specific properties.

To control a movie in the Flash Player from Web browser scripting languages such as JavaScript, VBScript, and Microsoft JScript, you can use Flash Player methods—functions that send messages from a host environment to the Flash movie. For example, you could have a link in an HTML page that sends your Flash movie to a specific frame.