Table 10-2 (continued) Event When the Action Occurs (Free web hosting with ftp)

Table 10-2 (continued) Event When the Action Occurs Drag Over When the mouse cursor moves over the button s hit area with the mouse button held down Drag Out When the mouse cursor moves out of the button s hit area with the mouse button held down The hit area of a button is the button s active area the area that responds to mouse clicks and other user interactions. Turn to Chapter 8 to find out all about buttons. Adding an Action to a Movie Clip You add an action to a movie clip in the same way you add one to a button; both are objects to which you can add an action. Actions in movie clips work within the Timeline of the movie clip, not on the main Timeline of the entire movie. Therefore, you can create movie clips that are interactive within themselves. You can use actions in movie clips to do all kinds of things. You can use ActionScript within one movie clip to control a second movie clip the ActionScript could set the second movie s properties, for instance, and change its size, visibility, and so on. You can use ActionScript to start or stop a movie clip from playing and to replace one movie clip with another. For example, you might make a movie clip that contains a cartoon of a TV set, and add actions to the movie clip so that each time you click it, the TV shows a different cartoon. You can also add actions to movie clips by using behaviors, as we explain earlier in this chapter. To add an action to a movie clip, follow these steps: 1. Create the movie clip and place an instance of the movie clip on the Stage. Chapter 7 explains how to create movie clips. 2. With the instance selected, choose Window.Actions to open the Actions panel. If necessary, click the Actions panel title bar to expand the panel. And if the left pane of the Actions panel is not visible, click the tiny triangle in the middle of the left side of the Actions panel to make the left pane appear. 3. Click the Script Assist button on the right side of the Actions window if it isn t already enabled. 222 Part IV: Total Flash-o-Rama
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Leave a Reply