Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie

Status
Not open for further replies.

Fifafif

Technical User
Jan 13, 2007
2
GB
If I use a loadMovie to load a jpg or swf in my flash movie, it takes a long time before start loading the jpg or swf. How can I make it faster (actually immediately)? thx
 
You need to preload the swfs/jpgs - use the MovieClipLoader class to manage loading in of external assets , instead of loadMovie()


MovieClipLoader provides lots of useful callbacks which you can use eg. getProgress(); onLoadInit(); onLoadComplete();

I would keep your swfs/jpgs referenced in an array, and loop through it preloading each one at a time.

Senocular has an excellent tutorial here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top