The process of adding an action to a (Web hosting mysql)
The process of adding an action to a button is simple. The difficult part is deciding which actions to use. Later in this chapter, we review all the possible actions and discuss how to use them. You can also add an action to a button by using behaviors, as we explain earlier in this chapter. To create a button with actions, follow these steps: 1. Create the button and place an instance of the button on the Stage. Chapter 8 tells you about creating buttons. 2. With the instance selected, choose Window.Actions to open the Actions panel. If necessary, click the Actions panel s 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. In Script Assist mode, the right-hand side of the Actions window is split in half into two horizontal sections so that the upper-right pane of the Actions window can display any parameters you need to type in to write your actions. 4. In the left pane of the Actions panel, click a category (such as Global Functions) and a subcategory (such as Timeline Control), and then double-click an action (such as the goto action). In the Script pane on the right of the Actions panel, the on statement appears with the default event set to release, followed by the action you choose (such as gotoAndPlay). If the action you choose requires parameters, they appear in the Parameters area at the top of the Actions panel, as shown in Figure 10-3. The on action can respond to the mouse button, the motion of the mouse, and key-presses. In the example earlier in this chapter in the section Stopping the movie before it starts, we explain how to put a stop action on a frame so that Flash stops and waits for the user to press a button. Now here, if you, for example, choose the gotoAndPlay action, you can make your movie advance to a new frame on the Timeline when the user clicks the button. 5. If the action requires parameters, type the required information in the Parameters area in the upper-right pane of the Actions panel. We list some of the most common actions and their parameters later in this chapter, in the Using Actions section. You can continue to add actions by repeating Steps 4 and 5. 220 Part IV: Total Flash-o-Rama
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.