all groups > flash actionscript > may 2006 >
You're in the

flash actionscript

group:

PLEASE HELP - DROP N DRAG BUTTON PROBLEM!!



PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! SLMHILL
5/20/2006 3:03:11 PM
flash actionscript: Trying to make a draggable button, added this script, but its not working!

on (press) {
startDrag(mcCircle);
}
on (release) {
stopDrag();
}

Re: PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! q9hkpz
5/21/2006 1:28:10 AM
What is myCircle???
Re: PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! SLMHILL
5/21/2006 3:59:59 PM
Hi

Thanks for the message.

The following script is attached to a button instance which is inside a
movieclip called mccircle. Not sure if this is right or not?

Trying to make a draggable button, added this script, but its not working!

on (press) {
startDrag(mcCircle);
}
on (release) {
stopDrag();
}:)
Re: PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! NSurveyor
5/21/2006 4:53:56 PM
Your problem is scope. You have to give the scope of mcCircle from where your
button is. However, buttons seems to reference their parents when using "this"
in an on(handler).

on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
Re: PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! SLMHILL
5/22/2006 3:49:32 PM
Thanks - this was precisely my problem!!

Re: PLEASE HELP - DROP N DRAG BUTTON PROBLEM!! NSurveyor
5/22/2006 8:25:06 PM
AddThis Social Bookmark Button