tailieunhanh - Adobe Flash CS3: The Professional Portfolio- P47

Adobe Flash CS3: The Professional Portfolio- P47:Now you can easily create web-ready images and animations within the familiar Adobe environment. With the recent acquisition of Macromedia, Adobe has added Flash to its suite of creative products, thus solidifying its position as the world's leading developer of graphic and visual communications tools. The Against The Clock Portfolio Series Flash title ensures that you'll learn everything you need to complete any job that requires Flash skills | 9. Add a keyframe to Frame 105 of the Actions layer. 1 0. With Frame 105 selected in the timeline place the insertion point in the first line of the Actions panel script pane. 1 1. Repeat the same basic process from Steps 3-7 to add a function that sets the visibility property of the Restart button to true. The Restart button will only be visible when the background timeline reaches Frame 105 . after the race is over . W Û I 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 n Actxxis Z a s nJ Restart d Banner a Sih nJ Baggy B nJ Granny a d I43VI a nJ tioper a nJ Backgro. a 41 _ 3 fa Jz È Scene 1 Actions - Frame x AcLonScnpt ooaqueBackground oarent prototype Object root 0 rotation soleKnd scale scaleY 5 scroTRect stage ra 1 2. Press Command-Return Control-Enter to test the movie. If you watch for ten seconds you will see the Restart button reappear shortly before it disappears again. This is because the main timeline loops in the same way any other timeline loops playing from start to finish and then returning to the beginning. The Restart button appears after approximately 8 seconds because you haven t yet stopped the main movie timeline. 1 3 Close the player window and return to Flash. 1 4. Select Frame 1 of the Actions layer. Click in the Actions panel script pane to place the insertion point. 1 5. Press Return Enter to add a new line and then press Return Enter again to move to line 3. This extra line is called white space which visually separates different pieces of code within the script pane. White space has no effect on the resulting code. Project 5 Gotor Roce Gomo 217 1 6. Type on line 3 of the Actions panel script pane. You re referring to the entire current timeline and not a specific object so the this reference is sufficient in this case. You can use lines of white space to visually separate sections of code. 1 7- Add a keyframe to Frame 120 of the Actions layer. New scripts require keyframes which means you have to add a keyframe at Frame .