look up startDrag() and stopDrag(). You can do a search for something like this in kirupa’s forums. Most questions have already been asked once if not twice.
Just put it on the movieClip you wish to drag and rotate. You can change it, so it turn in different directions depending on which direction you move…
on (release) {
stopDrag();
delete this.onMouseMove;
delete this.onEnterFrame;
}
on (releaseOutside) {
stopDrag();
delete this.onMouseMove;
delete this.onEnterFrame;
}
[/AS]
With this code the movieClip moves in two ways, depending on the direction of your mouse. I know this code isn’t perfect, and it needs some modifications to make it more usable, but it’s a good starting point I guess… The rest is up to you (or someone else :))
The effect your after (the fading out movement) is a bit to hard for me to do right now (busy doing other projects), but I guess it has got something to do with easing. Read some excellent tutorials on: http://www.bit-101.com/tutorials/
Anyway, I hope was of some assistance
Creating engaging and entertaining content for designers and developers since 1998.