[font=Comic Sans MS]I need help on my flash game. I’m making a clicking game. But when i click on a button it says NAN. This is what i typed on the button.[/font]
on (release) {
_root.total = _root.total + 15;
}
Some one help plz.
[font=Comic Sans MS]I need help on my flash game. I’m making a clicking game. But when i click on a button it says NAN. This is what i typed on the button.[/font]
on (release) {
_root.total = _root.total + 15;
}
Some one help plz.
Is “_root.total” originally set to zero, like at the start screen. That may be your problem.
Yup, most likely your problem.
total = 0;
make sure you define your variables before using them.
but now it only goes up to 15…
Sounds like a personal problem.
But no, really, it’s probably only going up to 15 because it keeps getting reset to 0 every time flash reads the frame that has total = 0; on it.
:: Copyright KIRUPA 2024 //--