Seticus
October 11th, 2003, 08:07 AM
Strange, but I have never before noticed this problem, maybe you guys can help me:
I've got two movieclips, containing each two buttons. I was thinking about giving the buttons the following AS:
on (keyPress "+") {
if (pushed == true) {
startDrag("_root.mc2");
pushed = false;
} else if (pushed == false) {
stopDrag();
pushed = true;
}
}
for the button in "mc2" and
on (keyPress "+") {
if (pushed == true) {
startDrag("_root.mc1");
pushed = false;
} else if (pushed == false) {
stopDrag();
pushed = true;
}
}
for the button in "mc1".
In the first frame in the root:
mc1.pushed = true;
mc2.pushed = true;
This won't work, because flash doesn't know which mc he has to move when "+" is pressed, but I still want this to work. Any ideas? It's weird, when you want to drag one, you always start dragging the lower one...
I've got two movieclips, containing each two buttons. I was thinking about giving the buttons the following AS:
on (keyPress "+") {
if (pushed == true) {
startDrag("_root.mc2");
pushed = false;
} else if (pushed == false) {
stopDrag();
pushed = true;
}
}
for the button in "mc2" and
on (keyPress "+") {
if (pushed == true) {
startDrag("_root.mc1");
pushed = false;
} else if (pushed == false) {
stopDrag();
pushed = true;
}
}
for the button in "mc1".
In the first frame in the root:
mc1.pushed = true;
mc2.pushed = true;
This won't work, because flash doesn't know which mc he has to move when "+" is pressed, but I still want this to work. Any ideas? It's weird, when you want to drag one, you always start dragging the lower one...