Web hosting directory - When you create an action, you first specify
Monday, November 26th, 2007When you create an action, you first specify what has to occur for the action to be executed. This is the when part of the process. For example, if you add an action to a button instance, you can specify that the action will happen when the user releases the mouse button after clicking it. Next you specify the action itself what will happen. The action must come from the list of actions in Flash. Many actions have parameters that you must add. For example, to get a button to bring your viewer to another Web page, you use the getURL action and add the exact Uniform Resource Locator (URL; Web page address) as a parameter. Using Behaviors You can easily add ActionScript to your movies by inserting behaviors with a click of the mouse. Behaviors are prewritten collections of ActionScript code that you add from the Behaviors panel. You can add them to frames, buttons, and movie clips in your Flash movies. To add a behavior, follow these steps: 1. Click a frame if you want to add an action to a frame. Create a symbol and place an instance of the symbol on the Stage if you want to add an action to a symbol. For example, to create a button that links to a Web site, select the button instance. Check out Chapter 8 if you need help with creating buttons. 2. With the frame or instance selected, choose Window.Behaviors to open the Behaviors panel, as shown in Figure 10-1. If necessary, click the Behaviors panel s title bar to expand the panel. Figure 10-1: The Behaviors panel lets you instantly add ActionScript to your movie. 214 Part IV: Total Flash-o-Rama
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.