d9085
January 16th, 2005, 04:05 PM
On Scene 1:
I've imported 6 pictures to 6 different frames.
Named the Frames p1, p2, p3 etc.
I've a Button that takes me to the next frame
I have a Dynamic Text box on each frame with the variable named pg_cntr
The AS I have for each frame is:
stop ();
pg_cntr = _currentframe
Everything works fine until I do my preloader on Scene 2
Pressing Ctrl + Enter twice runs the preloader.
The preloader works and the movie plays but the dynamic text box that should say "1" reads "3".
The AS for the preloader in Frame 1 is:
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", 6) {
gotoAndPlay ("Scene 1", 1);
}
The AS for Frame 2 is:
gotoAndPlay (1);
Any suggestions???
I've imported 6 pictures to 6 different frames.
Named the Frames p1, p2, p3 etc.
I've a Button that takes me to the next frame
I have a Dynamic Text box on each frame with the variable named pg_cntr
The AS I have for each frame is:
stop ();
pg_cntr = _currentframe
Everything works fine until I do my preloader on Scene 2
Pressing Ctrl + Enter twice runs the preloader.
The preloader works and the movie plays but the dynamic text box that should say "1" reads "3".
The AS for the preloader in Frame 1 is:
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", 6) {
gotoAndPlay ("Scene 1", 1);
}
The AS for Frame 2 is:
gotoAndPlay (1);
Any suggestions???