nkman
- Original Message -
From: "Ian Thomas"
To: "Flash Coders List"
Sent: Thursday, November 19, 2009 4:27:24 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!
What? mouseChildren=false always works, whether
What? mouseChildren=false always works, whether the job is simple or
not. That's what it was designed for!
Ian
On Thu, Nov 19, 2009 at 9:19 PM, Henrik Andersson wrote:
> Ian Thomas wrote:
>>
>> Henrik,
>> Setting mouseChildren=false on an InteractiveObject/Sprite is much
>> easier. The childr
Ian Thomas wrote:
Henrik,
Setting mouseChildren=false on an InteractiveObject/Sprite is much
easier. The children no longer react to or originate mouse events.
Agreed, it is easier. But the loop always works. I don't use it for
simple cases. The right tool for the right job.
Henrik,
Setting mouseChildren=false on an InteractiveObject/Sprite is much
easier. The children no longer react to or originate mouse events.
HTH,
Ian
On Thu, Nov 19, 2009 at 9:00 PM, Henrik Andersson wrote:
> Whenever I need to work with a reference to a leaf node, I run a loop like
> thi
inger cursor.
Sincerely
Mark R. Jonkman
- Original Message -
From: "Michael Mendelsohn"
To: "Flash Coders List"
Sent: Thursday, November 19, 2009 3:50:07 PM GMT -05:00 US/Canada Eastern
Subject: RE: [Flashcoders] AS3 mouseUpOutside not working, yuck!
Thanks for
Whenever I need to work with a reference to a leaf node, I run a loop
like this:
for(var obj=target;obj!=stage;obj=obj.parent) {
if(target is Type) {
yay();
break;
}
}
___
Flashcoders mailing list
Flashco
Thanks for answering Henrik. I just figured out a solution. I have to add a
var to record what was clicked, and then compare that against the event's
currentTarget. It seems like an awful hack though. I'm hoping there's
something simpler.
- MM
_
99 % of the time when Event.target is wrong, it is due to it being a
Shape instance instead of the containing MovieClips as wrongly expected.
It's due to authoring time content being added as separate Shape
instances instead of being drawn on the Movieclip itself.
__
8 matches
Mail list logo