Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 43 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
43
Dung lượng
1,09 MB
Nội dung
[...]... 12- 19 This code will call the 3D carousel to the stage 356 THE END OF THE BEGINNING Figure 12- 19 Creating the movie page We’re now going to edit the third block of code to load the carousel into the site 4 Edit the third block of code to read as shown in Figure 12-20 12 Figure 12-20 Editing the third block of code to call the carousel Finally, we are going to edit the last block of code to call the. .. the Library onto frame 236 of the Click here layer onto the stage, as shown in Figure 11-12 Figure 11-12 Positioning the button on the stage 333 THE ESSENTIAL GUIDE TO FLASH CS4 You can choose to apply the same motion presets to the button as we have the to the rest of the text; simply revisit Chapter 6 for step by step instructions We want to stop the movie clip where the button is displayed, so we’ll... 12-11 351 THE ESSENTIAL GUIDE TO FLASH CS4 Figure 12-11 Naming your button 3 Click OK to exit the Convert to Symbol dialog box 4 Double-click the button to take it to edit mode 5 Insert a keyframe in each of the buttons states Copy the Up state frame to each of the other frames (if it isn’t done automatically), as shown in Figure 12-12 Figure 12-12 Copying states to your button 352 THE END OF THE BEGINNING... repeat of the first block of code that was executed at the start of the ActionScript A new is made for the countdown timer It is then inserted into the container, added to the stage, and positioned into place 355 THE ESSENTIAL GUIDE TO FLASH CS4 You might be asking why the countdown timer code is added again This is due to the fact that is a container We swap our SWF movie files in and out of this... going to create a button on frame 236 of the banner ad to give the user a clear call to action to click the banner ad to be taken to the advertised site We have premade the button for you to apply the code to; you will find this button in the library for this document 11 4 Scroll the playhead along to frame 236 on the new Click here layer and insert a keyframe 5 Drag the button symbol from the Library. .. Import to Stage 3 Browse the Chapter 12 exercise files to find the file 4 Once the logo has been imported to the stage, position it in the billboard at the top, as shown in Figure 12 -9 350 THE END OF THE BEGINNING Figure 12 -9 The logo imported to your stage The static part of the site is now complete Next, we are going to implement the buttons Creating buttons for your site As you can see, four button... which are the video, the carousel, and the contact form 12 1 Create a new layer called actions 2 Open the Actions panel by pressing F9 3 Enter the following code into the Actions panel, as shown in Figure 12-14: 353 THE ESSENTIAL GUIDE TO FLASH CS4 Figure 12-14 Adding the ActionScript into the Actions panel A new loader is created called Loaders are used to import files into your Flash movies Then a... this container as the user clicks a button for each section If the contact page were currently showing and a user clicked Home, then the code to display the countdown timer would need to be executed Let’s now create the remaining pages of our website Calling the remaining pages The next stage in building our Flash website is to alter the rest of the code to call to the stage the other SWF files that... created, creatively called This variable just holds the location of the file At the moment, the file is hosted locally, and the path is relative You could also make the paths absolute and link to webbased URLs The next line, container called , tells Flash to grab the file and put it in a container is added to the stage Next, the Now you need to carefully position the loader, which is housing the countdown... Code to run the other buttons can now be copied and pasted from the Home button ActionScript 1 Copy the block of code you have just typed out, starting from the to the end brace, as shown in Figure 12-18 Figure 12-18 Copying code to implement it for the other pages of your site 2 Paste it three times into the Actions panel so that you have four blocks of code 3 Alter the second block to read like the . the button symbol from the Library onto frame 236 of the Click here layer onto the stage, as shown in Figure 11-12. Figure 11-12. Positioning the button on the stage THE ESSENTIAL GUIDE TO FLASH. CHAPTER 11 UTILIZING BEST PRACTICES TO GET THE MOST OUT OF YOUR FLASH CS4 MOVIES THE ESSENTIAL GUIDE TO FLASH CS4 324 When Stan Lee, one of the founding fathers of the superhero comics that have. layer for the button We are now going to create a button on frame 236 of the banner ad to give the user a clear call to action to click the banner ad to be taken to the advertised site. We