[ Pobierz całość w formacie PDF ]
.Flash inserts ActionScript similar to the following in the Actions list:onClipEvent (load) {stop ();}where onClipEvent (load) indicates that when the movie loads, Flash shouldexecute the instruction stop to stop the movie.Note: Empty parentheses after an action indicate that it s a method (capability) that has noparameters or arguments.To play a movie clip:1 Select the movie clip you want to play, or select the button that controlsthe playback.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 Play action.Flash enters ActionScript similar to the following in the Actions list:on (release) {play ();}where on(release) indicates that when the button is released, Flash shouldexecute the instruction play to play the movie.286 Chapter 12 Adjusting movie display qualityAnti-aliasing requires a faster processor to smooth each frame of the movie beforeit is rendered on the viewer s screen, and thus it can slow playback.You can makea movie play faster by turning anti-aliasing off.To turn anti-aliasing for a movieon and off, you use the Toggle High Quality action.This action affects all moviesplaying back in the Flash Player.(You cannot adjust the movie display quality ofan individual movie or movie clip in the Flash Player.)A Toggle High Quality action assigned to a button lets the audience adjust theplayback quality of the movie.The action switches anti-aliasing on or off.That is,clicking the mouse button once turns off anti-aliasing or turns it on if the moviealready is low quality; clicking the mouse button again has the opposite effect.For more information on choosing between appearance and playback speed, seethe QUALITY parameter in  Editing Flash HTML settings on page 353.To adjust the movie speed or playback quality:1 Select the frame, button instance, or movie clip instance to which you willassign the action.Selecting a movie clip adjusts the movie speed; selecting a button adjusts themovie playback quality.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 Toggle High Quality action.Flash enters the following ActionScript similar in the Actions list:toggleHighQuality ();Creating Interactive Movies 287 Stopping all soundsTo stop the audio track without interrupting the main movie Timeline, you usethe Stop All Sounds action.(This action does not just suppress the volume.) TheStop All Sounds action affects all movies playing back in the Flash Player.Streaming sounds will resume playing when the sound s Timeline advances;attached sounds won t resume.For more information on controlling sounds, see  Starting and stopping sounds atkeyframes on page 174.To stop all sounds in a movie: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 Stop All Sounds action.Flash enters the following ActionScript in the Actions list:stopAllSounds ();Jumping to a different URLTo load a document from a specific URL into a browser window, or to passvariables to another application at a defined URL, you use the Get URL action.(Variables store named values that can be retrieved for use in scripts.) For example,you can send variable data to a CGI script for processing in the same way as youwould an HTML form.Only variables for the current movie are sent.Typically, you would use the Get URL action to load a Web page, but you can alsouse it in a Flash projector to open a browser window automatically and display thespecified URL.Testing this action requires that the requested file be at the specified locationand that absolute URLs have a network connection (for example, http://www.myserver.com/).For information on passing variables, see the ActionScript Reference Guide.288 Chapter 12 To jump to a URL: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 Get URL action.4 In the Parameters pane, enter the URL from which to get the document,following these guidelines:" Use either a relative path such as mypage.html or an absolute path such ashttp:///www.mydomain.com/mypage.html.A relative path is a shorthand version of the full address that lets you describeone file s location in relation to another; it tells Flash to move up and downthe hierarchy of nested files/folders/directories, starting from the file whereyou issued the Get URL instruction.An absolute path is the complete addressthat specifies the name of the server on which the file resides, the path (thenested hierarchy of directories, volumes, folders, and so on), and the nameof the file itself [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • higrostat.htw.pl
  •