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
system
July 26, 2004, 6:11am
2
that’s what a preloader does…you are right!
system
July 26, 2004, 6:12am
3
AHAHAHAAHHA-no…
i needed the actionscript…
system
July 26, 2004, 6:16am
4
system
July 26, 2004, 6:19am
5
that doesnt help buddy -.-
system
July 26, 2004, 6:20am
6
try again, changed URL after re-reading
system
July 26, 2004, 6:24am
7
i think thats for bar preloaders
system
July 26, 2004, 6:26am
8
you could have a inner mc and rather than setting the width set the current frame
system
July 26, 2004, 6:28am
9
yea but im not sure what the as is thats what i asked for in the first place…
system
July 26, 2004, 6:28am
10
i.e. using the framenumber from the percent variable
system
July 26, 2004, 6:29am
11
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
system
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
system
July 26, 2004, 6:36am
13
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
system
July 26, 2004, 6:37am
14
too kind bombing pixels…too kind
system
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?