Storyteller
June 13th, 2003, 12:05 PM
I've tried searching for the answer to this all over kirupa, but couldn't find anything. Here's the rundown:
Movieclip with a button inside it.
Button code:
on (press) {
pressing = 1;
}
on (release) {
pressing = 0;
}
Movieclip code:
onClipEvent (enterFrame) {
if (pressing) {
startDrag (this, true);
} else {
stopDrag();
}
}
Works great for one object. Does not work for two or more. Only the first object works properly no matter how many exist.
Please tell me what I'm missing.
Thanks,
ST
Movieclip with a button inside it.
Button code:
on (press) {
pressing = 1;
}
on (release) {
pressing = 0;
}
Movieclip code:
onClipEvent (enterFrame) {
if (pressing) {
startDrag (this, true);
} else {
stopDrag();
}
}
Works great for one object. Does not work for two or more. Only the first object works properly no matter how many exist.
Please tell me what I'm missing.
Thanks,
ST