Flash help...
What you've done works well until you place another button in the movie and then the rollOver & rollOut commands get confused...
I found from bitter experience that you need to assigned a variable (in my version: VariableNamedWhatever) to make this work:
---Code for the Invisible button---
on (rollOver) {
VariableNamedWhatever = "1";
tellTarget ("over") {
play();
}
}
on (rollOut) {
VariableNamedWhatever = "2";
gotoAndPlay(3);
tellTarget ("out") {
stop();
}
}
---Code for Frame 3---
if (Number(VariableNamedWhatever) == 1) {
tellTarget ("over") {
play ();
}
}
Hope this helps...?
__________________
and so ends the thought process for another day...
|