Matt1
July 26, 2004, 6:06am
1
Hello… i have a preloader question… (i know this has been asked like 10000 times already but im still wondering)…
I have 3 little circles that fill up…here is EXACTLY… what i want:
User Views Movie…
The Movie Loads
Preloaders Shows
It will play it once through and when it gets the end of the animation it will be done loading and play.
user enjoys
plz help me :*(
-Matt
that’s what a preloader does…you are right!
Matt1
July 26, 2004, 6:12am
3
AHAHAHAAHHA-no…
i needed the actionscript…
Matt1
July 26, 2004, 6:19am
5
that doesnt help buddy -.-
try again, changed URL after re-reading
Matt1
July 26, 2004, 6:24am
7
i think thats for bar preloaders
you could have a inner mc and rather than setting the width set the current frame
Matt1
July 26, 2004, 6:28am
9
yea but im not sure what the as is thats what i asked for in the first place…
i.e. using the framenumber from the percent variable
the link he gave works, it sets the width of an mc though, just change the mc it links to to one with 100 frames and set it to change _currentframe instead
Matt1
July 26, 2004, 6:33am
12
sooo:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent 100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
edit this for me lol srry
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
// the edit is the current frame
this.loadBar._currentframe = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
and make sure the movieclip that used to show the width now has 100 frames of what you want
too kind bombing pixels…too kind
Matt1
July 26, 2004, 6:39am
15
ooo thankyou soo much… im still learning thus making me sucky at flash… if i change the numbers 100 to the totalframes will it still work?
and what about the loadtext?