-
preloader problem...
All I have for a preloader is a dynamic text box with the variable name "loadd". The first frame of the first scene has the actions:
Code:
_root.loadd = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) + "%";
and the second frame...
Code:
_root.loadd = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) + "%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
_root.gotoAndPlay(1);
}
Good so far? The problem is when I watched it in my browser three fourths of the movie loaded before the preloader showed up.
Here is the url.
Thanks in advance!
-
Nah!
Frame1:
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay(4);
} // nothing else on this frame!
Frame2:
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay(4);
}
_root.loadd = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) + "%";
Frame3:
gotoAndPlay(2);
Your textfield should be on it's own layer and only over frames 2 & 3. Frame 1 should be clear of any displays, and is only there to skip right to the movie, if it's already in the user's cache.
-
read catbert303's answer here
-
its not working oldnewbie.... and I don't understand catbert's answer. If I do catbert's way will my movie be named preloader.swf? I want it to stay as shooting.swf :D
any other suggestions?
-
1 Attachment(s)
:D no
names don't really matter... you can change them
here is the fla of what he told
just make the stage the same size your movie is
and like he told:
"in your main movie you just need a stop(); action on frame 1"
(maybe you can use a blank frame as the first frame of your movie... if anything appears before it loads completely just try it first as it is)
-
Yeah! Hadn't noticed you had sound on that movie, that your probably exporting on frame 1, and that's what will cause the preloaders to not display properly. You can probably use catbert303's preloader or you could use mine which is very similar but only 1 frame.
http://www.flashkit.com/board/showth...hreadid=375161
If you can't download the packgake from the first post, it's also attached to this forum in the middle of page 2 of the same thread:
http://www.flashkit.com/board/showth...5&pagenumber=2