this allows the clip to drag, but you can click anywhere on the stage and drag it. How do I make it so it will drag when you hold down the mouse OVER the MC only and not everywhere else.
Thanks
make the a spot on the form where the user can drag it (usually labled drag)
add these actions…
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
}
After the actions are added to the button add it to the form where you want. Then select all the items and make them one big movie clip (call it dragForm, or whatever you want). The button should drag everything that is included in the dragForm movie clip.
yes I have done that before… but I would like to accomplish this without using a button. That way I can avoid the change in cursor associated with passing over a button. And also I want ANY part of the movie clip to be able to be used as a drag area without interfering with the buttons in the form. With the code I put up there in my post all of this is accomplished, but as I said the area to click on in order to drag is the entire stage. Is there another way???
Thanks again
Ok, I am not an expert so I am not positive on how to do it the way you want. I do however know how to get rid of the annoying mouse cursor in Flash MX.
on (rollOver) {
_root.myButton.useHandCursor = false;
}
Just add that to your button. (myButton = the instance name of your button).
Good luck in your mission! Sorry I couldn’t help more.
Thanks for your help…
Can anyone else offer me some more info on how to get closer to my goal? I am thinking that I need to use an if statement saying:
upload a small example fla of what u want to achieve please
That would help more people to experiment with the example
and so the solution would maybe be found faster
Here is a sample .fla so you can see what I am talking about. I believe I need some sort of if() condition before the startDrag condition - something that only allows the drag condition to run if the mouse is OVER the MC. Thanks for all your help!!!
Peace