rainbowpants
February 21st, 2003, 10:23 AM
Hi, i am trying to write a preloader for my flash webpage, using the tutorial given here. I have a single instance of a movie in my root timeline that I want the flash file to play after it has loaded. I currently have two layers in my root, one that has the movie i want to play in it in frame 2 (wiht nothing in frame 1), and another that has only a preloader animation in frame 1. The code i ahve associated with frame 1 (in the preloader animation layer) is:
if (_root.page1._framesloaded>=_root.page1._totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
(page1 is the instance that i want to play after it has fully loaded)
and the code that i have in the second frame of the layer containing the instance page1 is:
stop();
Whenever I try and export the movie and run it, i just get a blank screen. Im probably doing something stoopid, but i cant figure it out, and i have to hand it in in a few hours :( Thanks for any help anyone can offer.
nic.
if (_root.page1._framesloaded>=_root.page1._totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
(page1 is the instance that i want to play after it has fully loaded)
and the code that i have in the second frame of the layer containing the instance page1 is:
stop();
Whenever I try and export the movie and run it, i just get a blank screen. Im probably doing something stoopid, but i cant figure it out, and i have to hand it in in a few hours :( Thanks for any help anyone can offer.
nic.