RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
mc.mouseChildren = false;

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: donderdag 5 augustus 2010 15:14
To: Flash Coders List
Subject: [Flashcoders] drag issues

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
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3049 - datum van uitgifte: 08/04/10
17:07:00

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


Re: [Flashcoders] drag issues

2010-08-05 Thread Glen Pike
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


Re: [Flashcoders] drag issues

2010-08-05 Thread Henrik Andersson

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?


Don't use the target property then. Events bubble and this one is not 
for mc, but some content inside it. Use the currentTarget property instead.

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


RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
Set :

mc.mouseChildren = false;



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: donderdag 5 augustus 2010 15:14
To: Flash Coders List
Subject: [Flashcoders] drag issues

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
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3049 - datum van uitgifte: 08/04/10
17:07:00

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


RE: [Flashcoders] drag issues

2010-08-05 Thread David Hunter

mc.mouseChildren = false; would that do it?

 From: ted_l...@federal.dell.com
 To: flashcoders@chattyfig.figleaf.com
 Date: Thu, 5 Aug 2010 09:14:18 -0400
 Subject: [Flashcoders] drag issues
 
 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


Re: RE: [Flashcoders] drag issues

2010-08-05 Thread Nathan Mynarcik
Or you can do:

e.currentTarget.parent.startDrag();

On Aug 5, 2010 9:24 AM, Cor c...@chello.nl wrote:

mc.mouseChildren = false;


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3049 - datum van uitgifte: 08/04/10
17:07:00


___
Flashcoders mailing list
flashcod...@chattyfig.figl...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
Yes, but if it is all hardcodedyou could mc.startDrag();

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan
Mynarcik
Sent: donderdag 5 augustus 2010 15:44
To: Flash Coders List
Subject: Re: RE: [Flashcoders] drag issues

Or you can do:

e.currentTarget.parent.startDrag();

On Aug 5, 2010 9:24 AM, Cor c...@chello.nl wrote:

mc.mouseChildren = false;


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3049 - datum van uitgifte: 08/04/10
17:07:00


___
Flashcoders mailing list
flashcod...@chattyfig.figl...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3049 - datum van uitgifte: 08/04/10
17:07:00

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