STEP 03 external movie clip objectsthe tunnel and SUBWAY MOVIECLIPS

STEP 03 external movie clip objectsthe tunnel and SUBWAY MOVIECLIPS

As Hillman described earlier, one of the challenges of this project was to make a large movie work well and react immediately for users with slower modem connections.

To address the file-loading issue, we looked at the largest animations: the subway and tunnel animations (see figures 08:15 and 08:16).

Figure 08:15.


Figure 08:16.


These two clips are different from the others in that they will be separate files existing outside of the main movie. The reason that you have these files outside of the main movie is that they are relatively largearound 21k each. Although that seems small, users on modems will experience a noticeable delay that could interfere with their experience.

To solve the problem, I decided to make them separate files and load them programmatically using the load movie command. The movie then became three Flash movies with three SWF files. The main movie will load before the subway and tunnel movies, thus showing the user the main interface very quickly. This modular approach is especially useful when creating large interactive movies such as Flash web sites and adventure games where one wants to load only a few movies at a time.

Usually when creating clips that load on the fly, it's easier to create the clips in their main parent movie, in this case ManiFestival. This makes it much easier to lay out your clip and make adjustments to it.

  1. Create your movie clip in your movie just like any other movie clip: Select the frame, choose Modify > Instance and then click the Movie Clip option.

    In this case your movie clip is called subway.

  2. Select the entire Timeline of your subway movie clip.

  3. Select Edit > Copy Frames (Ctrl-Alt-C / Cmd-Option-C).

  4. Create a new movie.

  5. Select Modify > Movie and set the movie properties to be the same as your original "parent" movie. The size and frame rate are very important.

  6. Select the first frame in your new Timeline.

  7. Select Edit > Paste Frames.

  8. Save the file, naming it Subway.fla.

  9. Select File > Export Movie (and save as .SWF.

  10. Now go back to your original ManiFestival movie and open the subway movie clip.

  11. Delete all the keyframes. Then delete all the layers , leaving one empty keyframe in the movie clip.

Now the Subway movie clip in your original movie becomes a container (see figure 08:17). You load the new file subway.swf into it later. Leave the empty container on the main Timeline, though. You'll see the empty movie clip represented by a small white circle (see figure 08:18).

Figure 08:17.


Figure 08:18.


Repeat the previous steps 111 to create the Tunnel object. Export the movie as an .SWF (choose File > Export Movie) and save as tunnel.swf.

Flash Web Design The Art Of Motion Graphics
Flash Web Design oder: the art of motion graphics
ISBN: 3827256623
EAN: 2147483647
Year: 2005
Pages: 192 © 2008-2017.
If you may any questions please contact us: