all groups > macromedia flash sitedesign > january 2005 >
You're in the

macromedia flash sitedesign

group:

Preloader Problem with Cached Site


Preloader Problem with Cached Site LeifKolt
1/21/2005 12:11:12 AM
macromedia flash sitedesign:
i have a preloader set up like this

frame 1
if (_framesLoaded ==_totalframes) {
gotoAndStop(3);
}
frame 2
gotoAndPlay(1);

my problem is this..the preloader works fine the 1st time through..but than
the next time someone trys to access the page from the same computer...it gets
stuck in the preloader indefinatly. the reason is, the site is being cached on
the computer..so that after the 1st load it doesnt load again,,so my script
which needs it to load 3 frames isn't seing it load any,,and the site just
stays on the preloader...

how should i modify my action script so that it doesnt do this??
Re: Preloader Problem with Cached Site rlc5611
1/22/2005 5:20:55 AM
It still gets loaded regardless of whether it is from the net or the cache.
What action is triggering the load of the SWF? Is it loading as a movie or a
movie clip? If you are using MX 2004, at the very least you should get rid of
the capital letters (and try >= instead of ==): if (_framesloaded
[quoted text, click to view]
to know under which context you are having problems loading the movie (and
where this script is located).
AddThis Social Bookmark Button