tinre
07-18-2002, 02:41 AM
I am trying to get a button to do 2 different things to 2 different mc's.
I have a transparent button with a mc behind it with a stop-frame (with a stop-image)and a start-frame (with a start-image). When I push the button the mc behind it goes to the start-frame. Push it again and it goes back to the stop-frame. So far, so good. But I also want the same button to stop and start another mc, and it will not. I am desperate! This is my code for now, can anybody tell me what I am doing wrong?
on (release) {
if (dummy = 0) {
with (_root.WorkingMov) {
gotoAndPlay("start");
dummy = 1;
}
with (_root.NOTworkingMov) {
stop();
}
} else if (dummy = 1) {
with (_root.WorkingMov) {
gotoAndPlay("stop");
dummy = 0;
}
with (_root.NOTworkingMov) {
play();
}
}
}
I know I have the path right because I use the "target"-thingy.
I would be VERY greatful for any help in this case...
Tine
I have a transparent button with a mc behind it with a stop-frame (with a stop-image)and a start-frame (with a start-image). When I push the button the mc behind it goes to the start-frame. Push it again and it goes back to the stop-frame. So far, so good. But I also want the same button to stop and start another mc, and it will not. I am desperate! This is my code for now, can anybody tell me what I am doing wrong?
on (release) {
if (dummy = 0) {
with (_root.WorkingMov) {
gotoAndPlay("start");
dummy = 1;
}
with (_root.NOTworkingMov) {
stop();
}
} else if (dummy = 1) {
with (_root.WorkingMov) {
gotoAndPlay("stop");
dummy = 0;
}
with (_root.NOTworkingMov) {
play();
}
}
}
I know I have the path right because I use the "target"-thingy.
I would be VERY greatful for any help in this case...
Tine