If you are listening for an event on the "parent" clip, then use currentTarget not target.

On 05/08/2010 14:14, Lehr, Theodore wrote:
I have a mc that has other mc in it... this mc is hard coded on the stage... in 
the as I have:

mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);

function drag(e:MouseEvent):void
{
     e.target.startDrag();
}

The problem arises that instead of dragging the mc as a whole - it drags each 
mc in the main mc separately... I just want the whole thing to drag as one - 
instead it get pulled apart and each mc inside drags on its own.... any ideas?

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to