If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
You can place this code in an AS3 document or a custom class, your choice. Thanks to Matt for the snippet Full code after the jump.
AS3 click and drag example
function initDragger(mc:MovieClip):void
{
mc.addEventListener(MouseEvent.MOUSE_DOWN, function (e:MouseEvent):void
{
e.currentTarget.startDrag();
});
mc.addEventListener(MouseEvent.MOUSE_UP, function (e:MouseEvent):void
{
e.currentTarget.stopDrag();
});}
// Set up drag
initDragger(cir_mc);
Found this useful? How about buying me a coffee - simply click here.



thx! this is just what i needed!
Your way of opening and closing scripts is a bit odd, but it works like a charm!!
tnx again!
Glad I could help….