k8barton
02-23-2002, 10:03 PM
hi,
i've read the other posts about controlling a mc from a button within another mc, and the tutorial, but i'm stuck on a variation of this problem.
i have a button within mc1, and want to tell mc2 to go to another frame when that button is pushed. this part works:
on(release) {
_root.mc2.nextFrame();
}
but i want to be able to tell mc2 to go back to frame 1 if the button is pushed again. mc2 just has two states, and i want it to switch back and forth... do i need a conditional statement - i.e. if you're in frame 1, go to frame 2, and if your'e in frame 2, go to frame 1? i tried it but it's not working and i'm pretty new at this, so...
thx for any ideas!
i've read the other posts about controlling a mc from a button within another mc, and the tutorial, but i'm stuck on a variation of this problem.
i have a button within mc1, and want to tell mc2 to go to another frame when that button is pushed. this part works:
on(release) {
_root.mc2.nextFrame();
}
but i want to be able to tell mc2 to go back to frame 1 if the button is pushed again. mc2 just has two states, and i want it to switch back and forth... do i need a conditional statement - i.e. if you're in frame 1, go to frame 2, and if your'e in frame 2, go to frame 1? i tried it but it's not working and i'm pretty new at this, so...
thx for any ideas!