To and Stop radio button that (Free web design) appears in

To and Stop radio button that appears in the upper-right pane of the Actions panel. Go To and Play (default): The movie goes to the specified frame and plays. Use this option when you want to jump to a new area of the movie and play the animation there. This option is commonly used to loop a movie. On the last frame, you insert an action that goes to the first frame and plays the movie over again. gotoAndPlay is also used in preloaders, short scenes that encourage the viewer to wait while a bigger movie is loading. (See Chapter 12 for more information on preloaders.) On (mouse event) You use the On (mouse event) action to respond to mouse clicks, the motion of the mouse, and pressing a key on the keyboard. The default mouse event is release, but you can choose other mouse events as we describe earlier in this chapter in the section Adding Actions to Buttons. See Table 10-2 for a list of mouse events. When you add an action to a button in Script Assist mode, Flash automatically adds the On (mouse event) action so that you can specify when the action will occur for example, passing the mouse cursor over it or clicking it. We explain the procedure for adding an action to a button earlier in this chapter as well as in Chapter 8. You can, however, manually add the On (mouse event) action. You would do this if you were writing your own ActionScript and not choosing an action from the list of actions (which you can do if you turn off the Script Assist button in the Actions panel). You can also add the On (mouse event) action to a movie clip, by selecting a movie clip and then in the Actions pane choosing Global Functions.Movie Clip Control.On. Play The Play action tells a movie to start playing. Stop Stop stops a movie from playing. (Did you guess?) One important use is at the end of a movie clip because, otherwise, movie clips automatically loop. You can also put a Stop action on a button so that users can stop an introduction and get to the rest of your site. For a tidy ending to a movie, Flash users often place a Stop action at the end. stopAllSounds The stopAllSounds action simply stops all sounds from playing. 226 Part IV: Total Flash-o-Rama
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply