[FMX] - Preloader Help

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?

on (press) {play();

this might woork if it looked like this :

on(press){
play();
};

Cheers

SteveD

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?

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

Lol, sorry, i r newb. And yes, that works, thanks alot. :slight_smile: