Thread: Flash help
View Single Post
Old 10-19-2004, 05:41 AM   #5 (permalink)
Stug
Crazy
 
Location: UK
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...
Stug is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54