PDA

View Full Version : Help with code


ros
06-20-2006, 05:42 PM
i want one button to do opperate two MC at the same time
the button is made up of a MC which has two frames,
the code i have for them on the on the first frame is

if (backward eq "1") {
tellTarget ("_root.map") {
prevFrame();
}
}

and the other is

if (backward eq "1") {
tellTarget ("_root.boxline") {
prevFrame();
}
}

the button is made up of a MC which has two frames the second frame is

gotoAndPlay(1);

the button itself has this attached

on (press) {
backward = "1";
}
on (release) {
backward = "0";
}


Obviously I have a foward control as well

HaveI got it right?

sunlis
07-07-2006, 05:10 AM
if (backward == "1") {
tellTarget ("_root.map") {
prevFrame();
}
}
if (backward == "1") {
tellTarget ("_root.boxline") {
prevFrame();
}
}