Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Optimization

Categories Caching SWF files for Faster Movies
Author: Eddie Carroll

 
Page 2
«prev 1 2

A way around loading and unloading movies continually is simply, to put an empty movie clip on the top left corner of your stage, and call the instance "dummy" for example. Then, in your actions, you can make flash load any SWF file into this Movie Clip (Load Movie into location, target /dummy), and send tell target actions to it with the path /dummy.

Next, put an empty keyframe at the beginning of the SWF so you can load with a stop action. This will also allow you to make the loaded SWF disappear. To do this instead of using the unload movie function, simply tell the Movie Clip (/dummy) to Go to frame 1 and Stop. The movie will disappear.

To load another SWF into this location, simply overwrite it... The previous SWF loaded will still be in the browser cache and will appear instantly if you load it again into the location/target /dummy.

So there you have it, a simple yet effective way to cut down on download time and speed up your movie!

Good luck and happy flashing!

«prev 1 2

» Level Intermediate

Added: : 2000-03-07
Rating: 6.85 Votes: 175
Hits: 24540
» Author
Eddie is the Content Editor at Flashkit.com
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers