[ Pobierz całość w formacie PDF ]

Folder:
.
" Experiment by changing the Sound Export Settings, testing the movie each time and noting
the change in file size. In this example, changing from MP3 to Raw compression has
increased the SWF file size from 96KB to 211KB.
" Set the sound compression back to MP3.
" Now we will optimize the vector graphics in the movie. Ensure that all layers are unlocked.
" Using the Onion Skin tool, select Edit Multiple Frames.
" Click the Modify Onion Markers menu and select Onion All.
" Select All (Crtl+A). This will select all the layers in the timeline.
" In the main menu, choose Modify > Optimize.
" Move the Smoothing slider to Maximum, check both option boxes, then OK:
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING
EXERCISES  Optimizing Movies 57
Flash 5 Advanced © 2001 Cheltenham Computer Training
" Note the response message in the reduction to the number of curves:
" Test the movie. You will notice that the SWF file didn t change. That is because your movie
doesn t have complex vector images. If you had vector images with large number of curves,
this optimization will reduce the file size.
" Now we will optimize the movie by optimizing the whole move for the Publishing.
" Select File > Publish Settings.
" Select Flash tab and slide the JPEG Quality slider to the left, to decrease the quality of
raster images:
" This will optimize raster graphics.
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING
58 Optimizing Movies - EXERCISES
© 2001 Cheltenham Computer Training Flash 5 Advanced
" Test the movie again. You will notice that the SWF file size has decreased from 96KB to
83KB. But if you look at the raster image in the  Links Scene, you will notice that its quality
has decreased significantly:
Before After
" Set the JPG quality back to 80. This is the default setting.
" Sound files can also be optimized using this process. Just set the Audio Stream and Audio
Event and check the Override sound settings option. This will compress all sound files in
the same way:
" Test the movie. You will notice that the SWF file size has decreased from 96KB to 93KB.
" Go back and uncheck the Override sound settings. This is the default setting.
" Check the Generate size report option and click OK.
" Test the movie. You will notice that the report text (TXT) file is now generated in the same
folder where your FLA and SWF files are. Open this text file to view all size information of
your movie.
" Open the mexico27 Report.txt from the Flash 5 Advanced Samples folder to see an
example.
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING
EXERCISES  Standalone Movies 59
Flash 5 Advanced © 2001 Cheltenham Computer Training
Standalone Movies
To Create the Projector
" Some actions work only in standalone Projector files. In this exercise we will add few of
those actions.
" Open the mexico27.fla file.
" Select the "Pyramid Big Button" instance and add the On Mouse Event (release) action.
" Add the FSCommand action. Select fullscreen [true/false] from Commands for
standalone player ("true" is the Arguments default). This will make the movie increase to
the full screen of the monitor:
" Select "Pyramid Small Button" instance and add the fullscreen [true/false] from
Commands for standalone player. Change the Arguments to "false". This will make the
movie go back to its default screen size on the monitor.
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING
60 Standalone Movies - EXERCISES
© 2001 Cheltenham Computer Training Flash 5 Advanced
" Back on the stage, select the "Gecko Button" instance and add the quit from Commands
for standalone player. This will close the standalone file:
" Save File As mexico28.fla
" Open the mexico28.fla from the Flash 5 Advanced Samples folder to see an example.
" Before the above actions can be tested, there is one more step. Choose File > Publish
Settings.
" Check Windows Projector (.exe) and click Publish button:
" An .exe file is generated in your folder as mexico28.exe.
" Run the mexico28.exe by simply double-clicking on it.
" Test the button actions. Click on the  Big Pyramid will expand the movie to full screen. Click
on the  Small Pyramid will resize the movie to its original size. Click on the  Gecko to close
the projector.
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING
EXERCISES  Standalone Movies 61
Flash 5 Advanced © 2001 Cheltenham Computer Training
To Prepare Final Movies
" During the course of our exercises, we were naming the files accordingly, so that you can see
the example results of each exercise. However, now we will prepare the final versions for our
movies.
" First open the quiz7.fla file.
" In the  Navigation layer, at frame 10, select the  Hand Button and edit the action to load
the  mexico.swf movie:
" Set the Publish Settings for Flash file format only.
" Save File As quiz.fla
" Open the quiz.fla from the Flash 5 Advanced Samples folder to see an example.
" Publish the movie to generate the quiz.swf file.
" Now open the mexico28.fla file.
" In the  Text layer, select the Mexico  Text Button instance and edit the action to load the
 quiz.swf movie:
" Set the Publish Settings for HTML, Flash and Windows Projector file forms.
" Save File As mexico.fla
" Open the mexico.fla from the Flash 5 Advanced Samples folder to see an example.
" Publish the movie to generate mexico.html, mexico.swf and mexico.exe files.
" Run the mexico.exe file. Test all functionalities.
" Open the mexico.html file in the browser. Test all functionalities. Everything should work,
except the Projector commands added to the  Big Pyramid ,  Small Pyramid and  Gecko
buttons. These commands will work on the standalone EXE file only.
" Open the mexico.exe and the mexico.html files from the Flash 5 Advanced Samples folder
to see an example.
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Computer Training 1995-2001 - www.cctglobal.com
NOT FOR TRAINING [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • angela90.opx.pl
  • Archiwum