At 8/2/08 08:05 PM, Vengeance wrote:
STOP WAITING 10 FUCKING MINUTES BETWEEN BUMPS YOU MORON.
stop();
play_btn.addEventListener(MouseEvent.CLI CK, playFunc);
function playFunc(e:Event){
gotoAndPlay(2);
}
Not even going to bother to explain it. You're not patient enough to wait for help, so you'll never be patient enough to learn anything more advanced than that.
To explain, the addEventListener function takes 2 parameters, the first being what type of event, and the secont what function to call.
A few things to know, when passing a function as a parameter, simply pass the function name without parenthesis at the end, and also the function being called needs to receive a single parameter of the event type, as that is the entire reason the function is called. This received event contains information about how it was triggered.
You can read more in various tutorials around the internet, or in the official livedocs.