Archive for December, 2007

Choose Control.Test Movie to try it out! When (Virtual web hosting)

Wednesday, December 26th, 2007

Choose Control.Test Movie to try it out! When you roll over a button, the graphics, text, and movie clip animation on the appropriate frames appear. Figure 12-3 shows a Timeline with frames that are displayed when the mouse cursor passes over buttons. If you choose Release instead of Roll Over in Step 13, you can display different information when the mouse clicks each button. Look for HelpDesk-Timeline.fla in the Ch12 folder on the companion Web site (www.dummies.com/go/flash8) for an example of buttons that use the Timeline to display information about the purpose of the buttons. To test the move, choose Control.Test Movie. To see the ActionScript, click a frame with an a in it and choose Window.Actions to open the Actions panel. Testing for the Flash Player Although most people have the Flash Player installed, some viewers might still have totally out-of-date browsers. For viewers who don t have the Flash Player, it often downloads automatically (as a result of the code that Flash places in the HTML file when you publish your .swf and HTML files, as we describe in Chapter 13). If Flash doesn t download automatically, those viewers simply might not be able to view your site. You can test for the presence of the Flash Player and, even more, you can test to see which version of the Flash Player they have. If you re using features that exist only in Flash 8, make sure that viewers have Flash Player 8 because many people might still have Flash Player 7 (or an even earlier version) installed. You can test for the Flash Player in several ways; we describe two possibilities in the following sections. Figure 12-3: You can use the Timeline to display different graphics and text when the cursor passes over each button. Chapter 12: Putting It All Together 275
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Web file server - 12. Click the first line of ActionScript, which

Tuesday, December 25th, 2007

12. Click the first line of ActionScript, which by default says on (Release) {. 13. From the list of mouse events at the top of the Actions panel, deselect Release and select Roll Over. The Roll Over event causes the action to occur when your viewer passes the mouse cursor over the button. 14. Click the second line of ActionScript. 15. At the top of the Actions panel, select the Go To and Stop radio button. 16. For the Type drop-down list, select Frame Label. 17. From the Frame drop-down list, select the first label that you created on your Timeline in Step 6. Your ActionScript should now be the same as the code shown in Figure 12-2. 18. Repeat Steps 9 through 17 for the rest of your buttons and their respective frame labels. 19. Create a new layer and name it Actions. 20. Place a Stop action on the first frame. Turn to Chapter 10 for instructions on how to add an action to a frame. If you don t do this final step, your movie simply plays through all the frames, displaying your descriptions one after another. You want viewers to see those frames only when they click a button. Figure 12-2: ActionScript that displays a section of the Timeline when the viewer presses a button. 274 Part V: The Movie and the Web
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Top web site - about a product. Clicking another button might display

Tuesday, December 25th, 2007

about a product. Clicking another button might display information about a second product. To create a set of buttons that move the playhead to different sections of the Timeline, follow these steps: 1. Place instances of your buttons in separate layers on the first frame of the Timeline of your movie. 2. On each layer, about 20 or so frames after the first frame, add a keyframe. These 20 or so frames leave room to store static display frames or movie clips on the Timeline. The buttons continue to be displayed throughout the movie until the ending keyframe. If you have a lot of buttons, you might need to choose a keyframe that s more than 20 frames after the first frame. The more buttons you want to provide descriptions for, the further out your ending keyframe needs to be. 3. Create a new layer to display the right side of the page and give it a name, such as Product Views. 4. A few frames out (on Frame 10, for example) on the Product Views layer, create a keyframe. This step starts a Timeline section for the product displayed when the user clicks your first button. 5. Open the Property inspector if it isn t already open (choose Window. Properties.Properties). If necessary, click the collapse arrow on the Property inspector title bar to expand it and click the Properties tab. 6. In the Frame Label text box on the left side of the Property inspector, type a label name. 7. On the Stage, create the graphics and words that you want to be displayed when a user clicks the first button. If you want to display animation when a user clicks the first button, drag a movie clip from the Library. (Check out Chapter 7 for the scoop on creating movie clips.) Place the graphics so that they don t cover the buttons when they appear. 8. Repeat Steps 4 through 7 to create labels and displays on the Product Views layer for all your buttons, using later sections of the Timeline each time until you reach the ending keyframe. 9. Select a button. 10. Choose Window.Actions to open the Actions panel if it s not already open, and in the Actions panel click the Script Assist button to select it, if it s not selected. 11. In the list on the left side of the Actions panel, choose the Global Functions category, then the Timeline Control subcategory, and then double-click goto. Chapter 12: Putting It All Together 273
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

How to cite a web site - hot thing in Flash a few years ago,

Monday, December 24th, 2007

hot thing in Flash a few years ago, when people were more captivated by the novelty of vector animation on the Web. But now intros tend to simply irritate the viewer, so in this century an intro is probably a really bad idea. You want people to get to the main content of your site immediately. If the information in your intro is valuable, put that information in the main content of your site instead, where people won t feel annoyed that they re forced to view it. Your site probably contains buttons that people can use to navigate through your site, get more information, or contact you. You can create the navigation structure in three main ways: Attach On (mouse event) or Load Movie actions to the buttons to display the content of movie clips or Flash Player movies (.swf files). Attach getURL actions to the buttons to link to other HTML pages or movies on your site. You can, of course, create the HTML pages with Flash. Use the buttons to display information or graphics located on other parts of your Timeline by using the gotoAndPlay or gotoAndStop action. We describe the On (mouse event) and Load Movie actions in Chapter 10. We explain the getURL action in Chapters 8 (with regard to buttons) and 10. You can use combinations of these methods. For example, you can use On (mouse event) to display information when the mouse cursor is over a button, and you can use getURL to link to another page when the user clicks the button. Creating navigation with getURL When you attach a getURL action to a button, the button links to another HTML page in the same way that a button on a regular, non-Flash, HTML Web page does. For more information on the getURL action, see Chapter 10. Also, Chapter 8 explains how to add an action to a button. Using the Timeline to store Web content In most cases, you use the Timeline to display frames in sequence in other words, animation. But the Timeline can also store static frames. You can create anything on the Stage in those frames, and you can display what is in those frames whenever you want. So different frames on the Timeline can become the equivalent of separate Web pages. Suppose that you have several buttons on the left side of your page. You want viewers to see different graphics and animation on the right side of the page when they click each button. Perhaps clicking one button displays information 272 Part V: The Movie and the Web
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

Automatic or user-controlled download of the Flash (Free web hosting with ftp)

Monday, December 24th, 2007

Automatic or user-controlled download of the Flash Player from Macromedia JavaScript that automatically redirects viewers to an HTML site if they don t have Flash, or a button that viewers can use to surf to an HTML site if they have a slow connection or don t want to download the Flash Player. A Flash Player movie (perhaps requiring the latest Flash Player) including a preloader (if needed) and all the visual content of the page, with all text, graphics, and navigation created in Flash Additional HTML pages that, like the home page, utilize a user interface (and other graphics) built in Flash, for all the remaining pages in the Web site. You might want each of these pages to also test for Flash in case your viewers don t enter the site via your home page. An HTML page for viewers without the required version of Flash, suggesting that they download and install it. HTML pages that contain a non-Flash version of the Web site (if you want the site to be available to those who don t have and don t want to install the required version of Flash). For information on creating an HTML page that tests for the Flash Player, see the Testing for the Flash Player section, later in this chapter. The opening HTML page is (usually) the first thing that your viewers see. On the World Wide Web, first impressions are important if you want to your audience to stick around, so be sure to think carefully about what your goals are for this page. To match a Flash movie in a Web page to the rest of the page, match the background colors of the movie (by choosing Modify.Document) and the HTML page. (This technique doesn t work if your Web page uses an image for a background.) To set the background of the HTML page to a different color, edit the HTML file that Flash creates when you publish your movie. After determining the background color in hexadecimal code (by looking at the HTML code for the existing Web page), change the BGCOLOR tag in the HTML code in three places: In the background color where you see (for example) In the OBJECT tag where you see In the EMBED code where you see BGCOLOR=#99CCFF After people get to your Flash page, you can do whatever you want. Some sites using Flash start with an intro, which is a preliminary movie that either briefly explains what your site is for or just wows your viewers. Intros were a Chapter 12: Putting It All Together 271
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

page on your Web site to see (Web design company) how

Sunday, December 23rd, 2007

page on your Web site to see how the preloader works. Make sure that your preloader is long enough for the human eye to see. Remember that one frame is displayed for only a fraction of a second. Adding Web Search Information to Your Flash Movie You can easily add information to your .swf file to help Web search sites (such as Google, Clusty, and so on) find your Flash movie. The information you add is called search metadata. (It s called metadata because it s information about the information in your document.) This is a good thing if you want to be noticed because search engines typically ignore the contents of Flash movies, which are more difficult to decipher than the contents of regular HTML Web pages. To add metadata for Web search sites to your Flash movie, follow these steps: 1. Choose Modify.Document. The Document Properties window appears. 2. Enter a meaningful title for the document in the Title text box and enter additional descriptive information in the Description text box. The descriptive information may include searchable keywords, copyright and author information, and other brief information about the content of the document. 3. Click OK. Creating an Entire Web Site with Flash You can use Flash to create the complete user interface, along with all the graphics and text, on your site. Some Web sites are almost 100 percent Flash (for example, www.funonmars.com, the Web site of this book s Technical Editor, Sally Cruikshank). But most Flash Web sites (including www.macromedia.com) are a hybrid of Flash and HTML. So, typically, a Flash Web site has the following structure: An HTML home page that contains these items: A user interface (and perhaps other graphics) built in Flash Tests that detect the Flash Player and Player version 270 Part V: The Movie and the Web
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.

code than you may want to deal with (Web hosting services)

Sunday, December 23rd, 2007

code than you may want to deal with if you re new to Flash. For now, you might want to start out with a simple preloader using a few lines of more oldfashioned ActionScript code, which you can create by following these steps: 1. Create two scenes the second for your main movie and the first for the preloader. Or if your movie already has multiple scenes, add another scene for the preloader and make it the first scene. The scenes must be within the same movie. See Chapter 9 for the lowdown on creating and changing the order of scenes. 2. In the first scene (the preloader), create whatever you want your audience to see while the rest of your movie loads. Keep this scene simple so that it loads quickly. 3. Click the first frame of your preloader scene. Then choose Window. Actions to open the Actions panel if it isn t already open, and if necessary, click the collapse arrow on the title bar to expand it. In the Actions panel, click the Script Assist button to deselect it (if it s selected). 4. In the Script pane on the right side of the Actions panel, type in the following ActionScript code: if (_root._framesloaded >= _root._totalframes) { gotoAndPlay( Scene 2 ,1); } The ActionScript specifies that if the number of frames loaded is greater than or equal to the total number of frames in your movie (in other words, if the last frame of the main movie is loaded), the playhead of the Timeline should go to the first frame of the scene named Scene 2 and play it. Turn to Chapter 10 to find out about ActionScript. 5. Click the last frame of your preloader scene. 6. From the list of action types on the left side of the Actions panel, click the Global Functions category and then the Timeline Control subcategory; then double-click the gotoAndPlay action. gotoAndPlay(); appears in the Script pane on the right side of the Actions panel. 7. Type 1 in the Script pane. Now your code should look like this: gotoAndPlay(1); This ActionScript loops your preloader so that it plays over and over until your main movie is loaded. You can test your preloader by choosing Control.Test Movie, but your main movie might load so quickly that you don t even see the preloader. Choose View.Simulate Download to see how your preloader works while your main movie loads. (See Chapter 13 for more information on testing a movie and analyzing its download performance). You can also upload your file to a test Chapter 12: Putting It All Together 269
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Web design software - Using windows in a Flash movie Windows allow

Saturday, December 22nd, 2007

Using windows in a Flash movie Windows allow you to put a movie clip, a JPEG image, or an SWF file inside a movable window with a title bar, a border, and an optional Close button. The window appears inside your Flash movie. You can t drag the window outside the movie. To add a window to your Flash movie, follow these steps: 1. Choose Window.Components to view the Components panel if it s not already open. 2. Drag a window component from the Components panel onto the Stage. 3. Choose Window.Properties.Properties to open the Property inspector if it isn t already open. If necessary, click the collapse arrow on the Property inspector title bar to expand it and click the Parameters tab. The Property inspector appears with the Parameters tab on top. The Property inspector lists three parameters: Close Button, Content Path, and Title. 4. To set the content of the window, click the Content Path field on the Property inspector and type the symbol linkage ID of the movie clip that you want to display. Alternatively, type the relative or absolute path to a JPEG image file or an SWF file. For information on creating a symbol linkage ID, see the section Sharing Libraries on the Run, later in this chapter. 5. To specify whether the window has a close button, click the Close Button drop-down list and select True or False. True means that the Close button will be displayed. False means that it won t. Some tricky ActionScript code is needed to make the window close when you click the Close button, so for now, choose False. 6. To specify the name of the window that will appear in the title bar, click the Title field on the Property inspector and type a name. Creating a Preloader If you re very ambitious and create a huge Flash file, downloading it to a viewer s browser might take a long time. Your audience won t wait forever. To solve this problem, you can create a preloader, which is a tiny movie that loads quickly and tells your viewers to wait. Often, it simply says loading, followed by a percentage loaded. Flash 8 comes with a Loader component and a ProgressBar component that you can use to build preloaders, but they require more lines of fancy ActionScript 268 Part V: The Movie and the Web
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

To add a scroll pane to your Flash (Post office web site)

Saturday, December 22nd, 2007

To add a scroll pane to your Flash movie, follow these steps: 1. Choose Window.Components to view the Components panel if it isn t already open. 2. Drag a scroll pane from the Components panel onto the Stage. 3. Choose Window.Properties.Properties to open the Property inspector if it isn t already open. If necessary, click the collapse arrow on the Property inspector title bar to expand it and click the Parameters tab. The Property inspector appears with the Parameters tab on top. The Property inspector lists these parameters: Content Path, Horizontal Line Scroll Size, Horizontal Line Page Size, Horizontal Scroll Policy, Scroll Drag, Vertical Line Scroll Size, Vertical Page Scroll Size, and Vertical Scroll Policy. 4. To set the content of the scroll pane, click the Content Path field on the Property inspector and type the symbol linkage ID of the movie clip that you want to display. Alternatively, you can type the relative or absolute path to a JPEG image file or an .swf file. For information on creating a symbol linkage ID, see the section Sharing Libraries on the Run, later in this chapter. 5. To specify whether horizontal or vertical scroll bars are displayed, click the Horizontal Scroll Policy drop-down list or the Vertical Scroll Policy drop-down list and select Auto, True, or False. True means that the scroll bar will be displayed. False means that it won t. Auto means that the scroll bar will be displayed only if necessary. Therefore, Auto is usually a good choice. 6. To specify whether the user must scroll in the window by grabbing and dragging the image or by grabbing and dragging the scroll bar(s), select True or False from the Scroll Drag drop-down list. True means that the user must drag the image. False means that the user must drag the scroll bars. False is the default. 7. To change the number of pixels that a scroll bar moves horizontally or vertically each time that the viewer pushes one of the scroll bar s arrow buttons, click the Horizontal Line Scroll Size or Vertical Line Scroll Size field on the Property inspector and type the number that you want. The default value is 5 pixels. 8. To change the number of pixels that a scroll bar moves horizontally or vertically each time that the user pushes the scroll bar track (above or below one of the scroll bar arrow buttons), click the Horizontal Page Scroll Size or Vertical Page Scroll Size field on the Property inspector and type the number that you want. The default value is 20 pixels. Chapter 12: Putting It All Together 267
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Web design seattle - 11. Choose Modify.Transform.Scale and change the size of

Friday, December 21st, 2007

11. Choose Modify.Transform.Scale and change the size of the list box if you want to make the list box wider in order to make the menu items more legible. 12. Decide which elements of your Flash movie will change when a viewer selects a menu item in the list box. Add those elements to the Flash movie if you haven t already done so. If, for example, you decide that the contents of a dynamic text box will change when a list item is selected, create a dynamic text box on the Stage and give it an instance name, such as myInfo4. (See Chapter 5 to discover how to create dynamic text.) 13. Choose Window.Actions to open the Actions panel if it isn t open already, and in the Actions panel click the Script Assist button to deselect it (if it s selected). 14. Select Frame 1 in the Timeline and enter this code in the Script pane of the Actions panel: myEvent4 = new Object(); myForm4 = new Object(); myForm4.change = function(myEvent4){ myInfo4.text = myListBox.selectedItem.label; } myListBox.addEventListener( change ,myForm4); You can replace myForm4, myEvent4, myInfo4, and myListBox with any names that you like. myInfo4 in this example is the name of the dynamic text field that we mention in Step 12, and myListBox is the instance name of your list box. In Lines 1 and 2 of the preceding code, we create new objects named myEvent4 and myForm4. Line 6 adds an event listener to myForm4 that listens for whenever the viewer selects one of the menu items in myListBox. When the viewer selects one of the menu items, myListBox broadcasts to Flash that it has changed. myForm4 hears that and, using the code in lines 4, sets the text of the dynamic text field to whatever is the label of the list box menu item that the viewer selects. You can replace Line 4 with other ActionScript code to do something else. For example, Line 4 might instead set the value of some variable depending on which menu item in the list box is selected. The new value of that variable might then be used to, for example, change the size of a graphic on the Stage. Using scroll panes in a Flash movie Scroll panes allow you to put a movie clip, a JPEG image, or an .swf file inside a pane with scroll bars. This feature is useful if you want to display big movies or images without taking up lots of space on the Stage. 266 Part V: The Movie and the Web
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.