FREEINTERACTIVEPROOFING.COM

massive attack future proof lyrics - www.freeinteractiveproofing.com

Menu


Dynamic text changes based on viewer input or other events in the ActionScript. For this lesson, you will be writing ActionScript


to change the text as the movie loads. 7. Name the instance loaderText_txt. You'll refer to the loaderText_txt instance in the ActionScript. 8. In the text box on the Stage, type 0% loaded. 9. Use the Selection tool to resize and reposition the text box so that it is centered below the glass. 10. Select the Liquid layer, and click the Insert Layer icon. Name the new layer Mask. 11. Select frame 1 in the Mask layer. 12. Drag the loaderMask symbol from the Library panel onto the Stage. Position it so that it covers the liquid in the glass. 13. Select the instance of the loaderMask symbol on the Stage. In the Properties inspector, name the instance loaderMask_mc. [View full size image] You'll refer to the loaderMask_mc instance in the ActionScript. 14. Right-click (Windows) or Control-click (Mac OS) the Mask layer, and choose Mask. Flash indents the Liquid layer and locks both the Mask and Liquid layers. 15. Click Scene 1 to return to the main Timeline.   Loading the Movie You'll use ActionScript to load the promotional movie called WaterIntroAnimation.swf and the preloader. To load the movie file you'll use a request object called a URLRequest. 1. Select frame 1 in the Actions layer. 2. Press F9 (Windows) or Option+F9 (Mac OS) to open the Actions panel. 3. Type the following lines, exactly as they appear here. These lines load the WaterIntroAnimation.swf file. Note To compare punctuation, spacing, spelling, or any other aspects of the ActionScript, view the Actions panel in the 10End.fla file. var requestObj:URLRequest = new URLRequest("waterIntroAnimation.swf"); var loaderObj:Loader = new Loader(); addChild(loaderObj); loaderObj.load(requestObj); The first line declares a variable called requestObj, which is of the type URLRequest, and it defines the variable as a new request for the file called WaterIntroAnimation.swf. The second line declares a variable called loaderObj, which is of the type Loader, and it creates a new instance of the class Loader. The third line adds the loaderObj variable as a display object that is added to the Stage. The fourth line loads the requestObj variable, which was defined in the first line as the WaterIntroAnimation.swf file. 4. Choose Control > Test Movie to see your movie so far.