utswim
11-01-2002, 03:04 PM
I'm making a preloader MC (tweened progress bar) for a single-scene SWF. The MC is on frames 1 and 2, following the Intermediate Level Tutorial 05. This tutorial is for Flash 5. I'm working in MX, am I missing something?
The code for frame 1 is as follows:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
remaining = total-loaded;
percent = int((loaded/total)*100);
loadBar.gotoAndStop(percent);
ifFrameLoaded (17) {
gotoAndstop (3);
}
I have a gotoAndPlay(1); as code in frame 2. When I test the movie, I just get a black screen, and frame 3 has a bunch of buttons, pics, etc. on it, including a stop(); action. Any suggestions?
-Thanks.
The code for frame 1 is as follows:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
remaining = total-loaded;
percent = int((loaded/total)*100);
loadBar.gotoAndStop(percent);
ifFrameLoaded (17) {
gotoAndstop (3);
}
I have a gotoAndPlay(1); as code in frame 2. When I test the movie, I just get a black screen, and frame 3 has a bunch of buttons, pics, etc. on it, including a stop(); action. Any suggestions?
-Thanks.