RESOLVED **Transitions help (Fairly Urgent)
Following the script from a tutorial here:
http://www.kirupa.com/developer/mx2004/transitions2.htm
It works fine. Basically it's set up for transitions between external swfs being loaded into a main. Button1 is clicked and movie 1 appears, and plays 'til its midframe. Button2 is clicked, movie 1 plays its remaing frames and then movie two preloads and then starts. The issue is that the preloaders in the tutorial load the swf coming in after the previous one has fullyplayed out. I need to find a way to have movie 2 preload, while movie 1 is still stopped in its midframe, and then once movie 2 is preloaded, movie 1 finishes its frames and then movie 2 starts without a preloader. Hope this makes sense. Basically, here is the script that is on each button:
code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
//container.midframe is set in the beginning of each swf
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}
obviously there are different swf's targetted by each new button
the preloader is pretty generic:
code:
midframe = [yourupdatednumber];
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Does anyone out there have any ideas how this can be done....been working on it since last night...and it's driving me batty!!!!
If you have any questions, or if my explanation does not make sense, please don't hesitate to respond.
thanks,
Adam