Skip to main content
Inspiring
October 4, 2006
Answered

Preloading Large MovieClips

  • October 4, 2006
  • 1 reply
  • 286 views
Hi there,

I have a single flash movie and want to attach a preloader to the start. In the past, I have used the following code to do this:


myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*300;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop("MainScene", 1);
} else {
gotoAndPlay(1);
}


Unfortunately, when I apply this code to my new Flash movie (1.4Mb in size) the preloader doesn't run. The movie just stays blank while it loads and then skips to the main scene in the movie.

Here's a copy of the original FLA file (1.6Mb):
http://www.amplexus.com.au/source/slideshow06.fla

If someone could point me in the right direction or show me what I am doing wrong it would be very much appreciated!

Cheers,

Stanbridge
csjacks (AT) hotmail (DOT) com
This topic has been closed for replies.
Correct answer coldMiner
linkage on the movieclip "SLIDESHOW-CONTAINER" is set to export it frame 1, remove export in frame 1 - problem solved...

1 reply

coldMinerCorrect answer
Inspiring
October 4, 2006
linkage on the movieclip "SLIDESHOW-CONTAINER" is set to export it frame 1, remove export in frame 1 - problem solved...
Inspiring
October 4, 2006
Many thanks coldMiner!!! That fixed it!

REMINDER TO NEWBIES LIKE ME: DOUBLE-CHECK YOUR LINKAGE FIRST IF YOU HAVE THIS PROBLEM!

You know I could have sworn I checked for that after reading another post. Such silly mistakes can be avoided by getting more than four hours sleep each working day/night!!!

Cheers,

Stanbridge