| Flying bird movie commands | Looping airplane movie commands |
|---|---|
|
Stop Bird
Start Bird Bird 1 Bird 3 Forward one frame Backward one frame |
Load Loop
Clear Loop |
This set of movies is designed to show off the use of FSCommands and Javascript to control Shockwave Flash SWFs. It uses three different SWFs -
The commands listed in the table above control how the two SWFs are run and displayed. The first set of commands control the independent "flying bird" movie clip within TOUR.SWF. The second set of commands control the loading, display and control of the flying airplane in LOOP.SWF.
The buttons shown in the movie MAP.SWF send FSCommands to control the display of the TOUR.SWF movie. The Javascript which responds to the FSCommands is located in the HTML file CONTROLS.HTM. Clicking on each button will display a different portion of the SWF. Use the control diamond to move around and zoom in and out of the SWF.
Note: When using Netscape it is wise to use something like parent.fw_map.document.embeds[0] instead of parent.fw_map.document.map (where fw_map is an HTML file containing a Shockwave Flash SWF. The movie itself is an embedded object (index 0) with an embed name tag of "map". The syntax parent.fw_map.document.map is not always defined under Netscape, whereas parent.fw_map.document.embeds[0] seems to be always defined.