PDA

View Full Version : [FMX] - Preloader Help



Rahil
March 15th, 2003, 01:11 AM
I'm just playing around right now; getting ready for when i'm gonna have to make a real flash intro. I'm using kirupa's actionscript for the percentage preloader + loading bar. Heres the timeline:

Frame 1 - loading bar actionscript (AS)
Frame 2 - this.gotoAndPlay(1);
Frame 3 - stop();

Now in frame 3, i have a "Click here to play" link. Here is the link's AS:

on (press) {play();

Now, everything works fine, untill i get to the "on press, play" part. I think because the movie has stopped, the AS is disabled or something.

Is there anyway to have a "Click here to play" link?

SteveD
March 15th, 2003, 05:38 AM
on (press) {play();

this might woork if it looked like this :

on(press){
play();
};

Cheers

SteveD

Rahil
March 15th, 2003, 01:38 PM
The AS you gave me for the "Play" button doesn't work. It says theres a syntax error. Does anyone know how to make a play button after a preloader?

SteveD
March 15th, 2003, 04:50 PM
Hi,
yeah, just a small typo, would of thought you could have seen that - it should be this, can you spot the difference :

on(press){
play();
}

Cheers

SteveD

Rahil
March 15th, 2003, 08:04 PM
Lol, sorry, i r newb. And yes, that works, thanks alot. :)