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:
[COLOR=YellowGreen]stop ();
pg_cntr = _currentframe[/COLOR]
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 “[COLOR=Blue]1[/COLOR]” reads “[COLOR=Blue]3[/COLOR]”.
The AS for the preloader in Frame 1 is:
[COLOR=YellowGreen]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);
}[/COLOR]
The AS for Frame 2 is:
[COLOR=YellowGreen]gotoAndPlay (1);[/COLOR]
Any suggestions???