smirnie
09-06-2002, 09:11 AM
Hi,
I ve bee trying to create a preloading movie. I used this
tut:tutorial (http://www.actionscripts.org/tutorials/intermediate/flash5_preloaders/index.shtml)
I,ve been having some trouble though. I made up a new scene and moved it to the front of the movie (by choosing modify>scene and then simply dragging). I' ve made the layers as written in the tut and I also made the movieclip and put a stop in the first frame (by clikking the first frame and selecting actions>basic>stop). I've than created the dynamic text fields. and gave them the names as written in the tut (by enterring the name in the lower text field of the text actions menu).
I think all this is correct (is it?) so the problem has to be within the script. (where else).
this is the script as I put it in the first frame of my scripts layer:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 82) {
gotoAndStop ("Scene 1", 1);
}
"scene 1" is the scene that has to be preloaded and frame 82 is the last frame oh that scene.
I think I'll have to make some kind of a reference to the file it has to preload. The movie's name is webflash2.swf end consist oput of to scenes: scene 1 being the actual web and scene 2 being the preloading scene.
I'd apprecaite it very much if somebody could help me out. I've been struggling with it for quite a bit. I don't have lot of experience with Flash u see.
I ve bee trying to create a preloading movie. I used this
tut:tutorial (http://www.actionscripts.org/tutorials/intermediate/flash5_preloaders/index.shtml)
I,ve been having some trouble though. I made up a new scene and moved it to the front of the movie (by choosing modify>scene and then simply dragging). I' ve made the layers as written in the tut and I also made the movieclip and put a stop in the first frame (by clikking the first frame and selecting actions>basic>stop). I've than created the dynamic text fields. and gave them the names as written in the tut (by enterring the name in the lower text field of the text actions menu).
I think all this is correct (is it?) so the problem has to be within the script. (where else).
this is the script as I put it in the first frame of my scripts layer:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 82) {
gotoAndStop ("Scene 1", 1);
}
"scene 1" is the scene that has to be preloaded and frame 82 is the last frame oh that scene.
I think I'll have to make some kind of a reference to the file it has to preload. The movie's name is webflash2.swf end consist oput of to scenes: scene 1 being the actual web and scene 2 being the preloading scene.
I'd apprecaite it very much if somebody could help me out. I've been struggling with it for quite a bit. I don't have lot of experience with Flash u see.