BIG troubles with preloader

esse_bi

Novice

Posts: 15

3+ Months Ago

I'm loading with loadMovie about 20 jpgs inside my swf gallery.swf, the jpgs are inside a mc called container_mc and I can see all of them going further and back, all in the container_mcI call from home.swf pressing a button gallery.swfI'd like to add a preloader that loads all content before starting navigating the gallery, so all my jpgs are loade, and I see them one by one in the container_mc without wait time anymore...

I'm really unable to solve itI've tried with getBytesTotal/loaded but it seems not to work

help!!!

thx

Flanders

Beginner

Posts: 48

Loc: Reno, Nevada US

3+ Months Ago

When loading external content with code, the getBytesTotal does not accurately reflect the true size of the movie when all content is loaded. If you have a swf file that is 10kb with code in it that loads 20 images, the file is still only 10kb while loading. To get something like this to work, you have to write some code that won't execute your movie until the last image is loaded in.

Thx a lot, for your answer, I'm really getting crazy!I mean, I've finished my site, then I say ok, I make preloaders and it's complete! But I cannot make preloaders :,-(When you write //load your image here// where have I got to load it?I have to put all of them in a place where they are not visible, but that I can call in my stage with buttons I've already made:I have a clip named large and clips that load within large the jpgswith loadMovie(i+".jpg", "large") so I will have to change this action because otherwise it starts loading again the jpgs, with another that moves the jpg I need frome the place where I've stored them to my clip large...is it possible?thx you very very very very much!!!

Flanders

Beginner

Posts: 48

Loc: Reno, Nevada US

3+ Months Ago

The 'load images here' can be a whole block of code.you could load the image and move it to a location off the stage change it's alpha or any other transformations. Then, once the last one is ready and loaded, you can take all of them and place them wherever back on the stage in the 'start your movie here' code block. The very last thing to execute would be the gotoAndPlay() statement that starts up the movie after you have finished everything else (loading and placement of all movies).

esse_bi

Novice

Posts: 15

3+ Months Ago

I've tried with the following code, but I cannot make invisible my jpgs, and when I simulate upload It loads two jpgs, plays the root, starts again with loading the first two jpgs, palys the root....