Archive for November, 2007

Best web hosting - Table 10-3 Movie Clip Events Event When the

Friday, November 30th, 2007

Table 10-3 Movie Clip Events Event When the Action Occurs Load As soon as the movie clip loads into memory (that is, when the movie clip first appears on the Timeline) EnterFrame When the movie clip enters each frame Unload In the first frame after the movie clip is removed from the Timeline Mouse Down When the mouse button (Mac) or left mouse button (Windows) is clicked Mouse Up When the mouse button (Mac) or left mouse button (Windows) is released Mouse Move When the mouse is moved (anywhere on the screen) Key Down When a key is pressed Key Up When a key is released Data When data is received in a loadVariables or a loadMovie action Using Actions Before you can create actions, you need to know which actions are available. In this chapter, we explain only the basic actions. For more information about advanced actions and programming in ActionScript, choose Help.Flash Help, and in the Help window that appears, browse through Learning ActionScript 2.0 in Flash or ActionScript 2.0 Language Reference. Then refer to the preceding sections for instructions on inserting actions into frames, movie clips, and buttons. The following sections describe the most common actions. Timeline Control actions The Timeline Control category of the Actions panel contains actions you can use to control which frames play in your movie at what time. (To see this category list, choose Window.Actions to open the Actions panel and, if necessary, click the 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 224 Part IV: Total Flash-o-Rama
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

In Script Assist mode, the right-hand side of (Top ten web hosting)

Friday, November 30th, 2007

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. You can attach many kinds of actions to movie clips. A typical example might be that you want something to happen when the movie clip loads. 4. Find the action that you want in the left pane of the Actions panel and double-click it. In the Script pane on the right of the Actions panel, the action appears. Flash also automatically inserts an onClipEvent statement, using the default load event. If the action you choose requires parameters, they appear in the Parameters area at the top of the Actions panel. 5. If the action requires parameters, type the required information in the Parameters area at the top of the Actions panel. We list several 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. 6. If you want to change the default onClipEvent (load) statement, click to select load in the lower-right pane of the Actions panel (as shown in Figure 10-4), and then choose a different option in the Parameters area in the upper-right pane of the Actions panel. See Table 10-3 for a list of the events available for onClipEvent. 7. Click the Actions panel title bar to collapse the panel. Figure 10-4: In this example, a gotoAndPlay action has been added to the movie clip. Chapter 10: Getting Interactive 223
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

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

Thursday, November 29th, 2007

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.

Free php web host - 6. If you want to change the default

Thursday, November 29th, 2007

6. If you want to change the default on (release) statement, click to select release in the lower-right pane of the Actions panel, and then select a different option in the Parameters area in the upper-right pane of the Actions panel. See Table 10-2 for more information on the events you can use to define when a button action goes into effect. 7. When you ve had enough action, click the Actions panel title bar to collapse the panel. Table 10-2 Mouse Events Event When the Action Occurs Press When the user clicks the mouse button Release When the user releases the mouse button Release Outside When the user moves the mouse outside the hit area and releases the mouse button Key Press When a key that you specify is pressed (for example, keyPress specifies the left-arrow key) Roll Over When the mouse cursor moves over the button s hit area without clicking Roll Out When the mouse cursor moves out of the button s hit area without clicking (continued) Figure 10-3: In this example, a gotoAndPlay action has been added to the button. Chapter 10: Getting Interactive 221
We recommend high quality webhost to host and run your jsp application: christian web host services.

The process of adding an action to a (Web hosting mysql)

Wednesday, November 28th, 2007

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.

that viewers can choose whether they want to (Best web design)

Wednesday, November 28th, 2007

that viewers can choose whether they want to see it. (They might want to get down to business right away and purchase something. Who are you to make them wait?) In this example, the movie loads, but the first thing that it encounters is a command to stop. Nothing happens until someone clicks a button to start the movie. Of course, the Web page should contain other buttons and information that viewers can use to navigate through your Web site. To add the Stop action to your movie, follow these steps: 1. Create your animation. 2. Choose Control.Test Movie and watch your animation run. 3. Create a layer for your action and name it Actions. Chapter 6 explains how to create and name layers. 4. Click the keyframe where you want to add the action. 5. Choose Window.Actions to open the Actions panel if it isn t already open. If necessary, click the Actions panel s title bar to expand the panel. 6. In the left pane, click Global Functions, click Timeline Control, and then double-click Stop in the list of actions. 7. Choose Control.Test Movie again. This time, the movie doesn t run; the Stop action halts it. Adding Actions to Buttons A common way to add interactivity is to create a button. The viewer clicks the button and something happens (or stops happening). Usually, you add text near or on the button so that your viewers know what the button is for. If you already work on a Web site, you re familiar with the concept of hyperlinks. If you know HyperText Markup Language (HTML) the language behind Web pages you know that you can create hyperlinks by using the tag and its href attribute. This tag links text or an image to another URL. When people click the text or the image, they are teleported to that URL. You can create Flash buttons that accomplish the same purpose but with much greater flair. (Check out the end of Chapter 8 for an example of a button that links to a different Web page.) Buttons can do more! They can start or stop animation, jump to different parts of a movie, and stop sounds, among other things. Chapter 10: Getting Interactive 219
Searching for affordable and reliable webhost to host and run your web applications? Go to our
java web server services and you will be pleased.

Adding a basic action to (Abyss web server) a frame To

Tuesday, November 27th, 2007

Adding a basic action to a frame To add a basic action to a frame, follow these steps: 1. Create a new layer for your actions (if you haven t already done so). Chapter 6 explains how to add a new layer. 2. Click a keyframe. If the frame that you want to use is not a keyframe, right-click it (Windows) or Control+click it (Mac) and choose Insert Keyframe. 3. Choose Window.Actions to open the Actions panel (refer to Figure 10-2) if it isn t already open. 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. 4. 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. Using Script Assist makes creating actions much easier for you. We love it, and leave it on all the time, and suggest that you do, too. 5. Click a category and subcategory in the left pane of the Actions panel and either double-click an action or drag the action to the right side. You can also click the plus sign, choose a category, and then choose an action from the submenu. 6. If the action requires parameters, type the required information at the top of the Actions panel. We list the details of specific actions and their parameters later in this chapter. You can continue to add actions by repeating Steps 4 through 6. If you want to get the Actions panel out of the way, click the panel s title bar. Stopping the movie before it starts A simple example of using a frame action is to place a Stop action at the beginning of the movie. You might provide a button that starts the movie so 218 Part IV: Total Flash-o-Rama
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

Category Behavior Description Movie Clip Goto (Remote web server) and Play

Tuesday, November 27th, 2007

Category Behavior Description Movie Clip Goto and Play at Plays a movie clip. You can specframe or label ify the frame number or label. Movie Clip Goto and Stop at Stops a movie clip. You can specframe or label ify the frame number or label. Movie Clip Start Dragging Starts dragging a movie clip. For Movieclip more information about dragging movie clips, see Chapter 14. Movie Clip Stop Dragging Stops the current drag. Movieclip Projector Toggle Full Toggles full-screen mode on and Screen Mode off when you play a movie with a projector (a self-playing movie). For more information on projectors, see Chapter 13. Sound Load Sound Loads a sound from a runtime from Library shared library. For more information, see Chapter 12. Sound Load Streaming Loads an MP3 sound file. MP3 File Sound Play Sound Plays a sound. Sound Stop All Sounds Stops all sounds. Sound Stop Sound Stops a specific sound. Web Go to Web Page Displays the Web page found at the URL you specify. Adding Actions to Frames You add an action to a frame to control what happens when the movie reaches that frame. Frame actions are often used to play a movie clip or to loop a movie so that a certain section of the animation is repeated. Another use for frame actions is to stop a movie or to automatically link to another URL (such as a Web page address). You can also use frame actions for more complex programming of Flash. You can add many actions to frames. Later in this chapter, we list the major actions and how to use them. Chapter 10: Getting Interactive 217
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Vps web hosting - Flash s behaviors allow you to add interactivity for

Monday, November 26th, 2007

Flash s behaviors allow you to add interactivity for controlling graphics, movie clips, sound, video, and more. Table 10-1 lists the available behaviors. Table 10-1 ActionScript Behaviors Category Behavior Description Data Trigger Data Source Loads and manipulates information from data sources. Embedded Video Fast Forward Fast forwards embedded video by the number of frames that you specify. For more information, see Chapter 11. Embedded Video Hide Hides the video. Embedded Video Pause Pauses the video. Embedded Video Play Plays the video. Embedded Video Rewind Rewinds the video by the number of frames that you specify. Embedded Video Show Displays the video. Embedded Video Stop Stops playing the video. Movie Clip Bring Forward Brings the movie clip one level higher in the stacking order. Movie Clip Bring to Front Brings the movie clip to the top of the stack, so it s on top of all other movie clips. Movie Clip Send Backward Sends the movie clip one level lower in the stacking order. Movie Clip Send to Back Sends the target movie clip to the bottom of the stack. Movie Clip Load External Movieclip Loads an external SWF file into a movie clip. Movie Clip Load Graphic Loads a JPEG graphic file that is external to the movie (FLA) file. Movie Clip Unload Movieclip Removes a movie loaded with the Load Movie behavior or action. Movie Clip Duplicate Movieclip Duplicates a movie clip. You can offset the new movie clip by a specified x and y distance. 216 Part IV: Total Flash-o-Rama
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.

Cheap web hosting - 3. Click the plus button in the upper-left

Monday, November 26th, 2007

3. Click the plus button in the upper-left corner of the Behaviors panel and choose a category; then choose one of the behaviors listed in that category. In our example, choose Web.Go To Web Page from the pop-up menu. We list the categories and the behaviors that they contain after these steps. The behaviors that are available depend on the type of object that you choose. In our example, the Go To URL dialog box appears. Other behaviors prompt you for the appropriate information. 4. Enter the required information in the dialog box that appears. In our example, type a URL in the URL text box, such as http://www.infinityeverywhere.net. 5. Click OK. You see the behavior listed in the Behaviors panel. If you chose a button or a movie clip, an event might be listed as well. An event describes under what circumstances the behavior occurs, such as releasing the mouse button or pressing a key. In our example, you would see the On Release event. 6. If you chose a button or a movie clip and want to change the event, click the event to display a down arrow. Select a new event from the drop-down list. See Table 10-2 for events available for buttons and Table 10-3 for events for movie clips (both later in this chapter). 7. To see your brand new ActionScript code, choose Window.Actions to open the Actions panel if it isn t already open (see Figure 10-2). Figure 10-2: The Actions panel is your key to adding actions to your frames. Here the window is shown with Script Assist enabled. Chapter 10: Getting Interactive 215
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.