• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using FSCommand

The preceding exercises taught you how to control various movie Timelines within Flash. The FS Command action allows you to communicate with and control the program that is running your published movie, such as a browser or a stand-alone projector. (For details about publishing movies, see Chapter 16.) In a movie published as a stand-alone projector, for example, you can set an FS Command action's parameters to make the movie fill the screen, to hide and show the menu bar, and to allow graphics to scale (or prevent them from scaling) when viewers resize the movie's window.

To allow graphics to scale in a projector window:

1.
Create a new Flash document.

2.
Select Frame 1, and place some graphics on the Stage.

3.
With Frame 1 selected, access the Frame Actions panel.

4.
From the Add Statement menu, choose Basic Actions > FSCommand (Figure 15.27).

Figure 15.27. The FS Command action allows you to communicate with the program that's running Flash Player, such as your browser or a stand-alone projector.


5.
In the Parameters pane, from the Commands for Stand-Alone Player menu, choose allowscale [true/false].

Flash enters allowscale in the Command field, enters true in the Arguments field, and updates the Actions List (Figure 15.28).

Figure 15.28. Choose allowscale to make your movie's graphics scale proportionately when viewers resize a projector window.


6.
From the File menu, choose Publish Settings.

7.
In the Formats tab of the Publish Settings dialog box, check the projector checkbox for the platforms you are working on, and uncheck all other checkboxes (Figure 15.29).

Figure 15.29. To create a projector, check the checkbox for your platform in the Formats tab of the Publish Settings dialog box.


8.
Click the Publish button.

Flash creates a projector, using the default name and settings, and places it in the same location as the Flash file from which it derives. (To learn more about publishing, see Chapter 16.)

9.
To close the dialog box, click OK or Cancel.

10.
To play the movie, navigate to the projector file on your system and double-click the projector icon.

The stand-alone projector opens in window. When you resize the window, the graphics scale proportionally to fit within the new window (Figure 15.30).

Figure 15.30. With allowscale set to true, graphics shrink when viewers make the projector window smaller.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint