, using flash 5 

[ Pobierz całość w formacie PDF ]
.6 For Mode, choose how to display the hierarchy of movie clip instances:" Relative (the default) displays only instances of movie clips that exist in thecurrent frame of the current Timeline, and their children instances.The prefixthis refers to the current Timeline." Absolute mode displays every movie clip instance in every frame of every sceneof the entire movie.This mode always includes a leading slash or _root prefix(or _level to indicate a loaded movie level) to the inserted target path.Note: Absolute mode displays every instance in every frame, but because of thecomplexity of movie clip interactions, some instances may not be available when the TellTarget action is executed.You can freely switch between notations.However, changing between Relativeand Absolute mode may deselect the movie clip.7 Choose a movie clip from the tree view.The Target text box displays the path tothat clip.Click OK.8 In the Toolbox list of the Actions panel, select any additional actions that willinstruct the target movie clip what to do.Actions nested within the Tell Target block apply to the targeted Timeline.For example:tellTarget (_root.plane){stop();}296 Chapter 12 Checking whether a frame is loadedTo create a preloader to prevent certain actions from being triggered before theneeded content has been downloaded by the viewer, use the If Frame Is Loadedaction.A preloader is a simple animation that plays as the rest of a moviedownloads.The If Frame Is Loaded action is helpful for verifying that a large file(such as a bitmap or sound) is loaded.You can also use the _framesloadedproperty (within an If action) to check whether the contents of a specific frame areavailable locally.Using either the action or the property, you can start playing a simple animationwhile the rest of the movie downloads to a local computer.Both check whetherthe contents of a specific frame are available locally.Typically, the If Frame Is Loaded action is used as a frame action, but it can alsobe used as a button action.To test an If Frame Is Loaded condition, use theStreaming option with the Test Movie command.The frames load as if streamingfrom a Web site.For more information, see  Testing movie downloadperformance on page 315.To check whether a frame has been loaded:1 Select the frame, button instance, or movie clip instance to which you willassign the action.2 Choose Window > Actions to display the Actions panel.3 In the Toolbox list, click the Basic Actions category to display the basic actions,and select the If Frame Is Loaded action.4 In the Parameters pane, for Scene, select the scene containing the desiredframe: Current Scene or a named scene.5 For Type, choose Frame Number, Frame Label, or Expression.6 For Frame, specify the frame to be loaded before the action is triggered as aframe number, frame label, or expression, according to your selection in step 5.7 Select the action to occur when the particular frame has been loaded.Flash enters ActionScript similar to the following in the Actions list:ifFrameLoaded (100) {gotoAndPlay (10);}Creating Interactive Movies 297 To use the If Frame Is Loaded action to play a short animation as a movie loads:1 Create a short animation loop at the beginning of the movie.For example, youcan create a loop that displays the message  Movie loading.2 Create a frame action with the If Frame Is Loaded action that jumps out ofthe animation loop when all the frames are loaded and continues playingthe movie.For example, a 30-frame movie that has a 2-frame animation loop at thebeginning requires the following action attached to Frame 1:ifFrameLoaded (30) {gotoAndPlay (3);To complete the example, attach the following action to Frame 2, to restart themovie at Frame 1:gotoAndPlay (1);When the frame specified in the If Frame Is Loaded action loads, the movieskips the second frame and continues playing the movie from the third frame.To use the _framesloaded property in an action to play a short animation loop as amovie loads:1 Create a short animation loop at the beginning of the movie.For example, youcan create a loop that displays the message  Movie loading.2 Create a frame action that jumps out of the animation loop after all the framesare loaded and continues playing the movie.For example, a movie that has a two-frame animation loop at the beginningrequires the following action attached to Frame 2:if(_framesloaded==100) {gotoAndPlay (3);} else {gotoAndPlay (1);}For more information on the _framesloaded property, see the ActionScriptReference Guide.298 Chapter 12 13CHAPTER 13Creating Printable Movies.Once you have set up interactivity in your Flash movie, you can set certain framesin the movie to be printable so that users can print them with the Flash Player.You can use the Flash Player printing feature to print catalogs, coupons,information sheets, receipts, invoices, or other documents in your Flash movies.The Flash Player prints Flash content as vector graphics at the high resolutionsavailable from printers and other output devices [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • anikol.xlx.pl