Hi,

I think you could make one item the parent of another so you could listen to rollover events on both objects.

If A is the parent, you might to make A or B a custom object so that events from the child will get passed up to the grandparent "C" via event bubbling.

If you have a B as child of A, when you rollover A, you get an over event, when you rollover B within A, A rolls-out and B rolls-over, so you need to handle this. You also need to handle the "Release Outside" issue - AS2 did this nicely, now you have to listen for MouseEvent.MOUSE_UP to find this out as MOUSE_OUT does not seem to work when your button is down - I may be wrong, but this has caused problems for me recently.

   Glen

Meinte van't Kruis wrote:
I'm actually talking here where A and B have no relation whatsoever, so
perhaps my question doesn't belong in this
thread, when I read the follow line, I actually guess it's impossible for B
to receive any MouseEvent when A is enabled
and overlapping it:

'This means that even if no event handlers have been assigned to a
particular display object, it will still be targeted for an event when
clicked, preventing anything below it from receiving events.'

On Tue, Sep 2, 2008 at 12:55 PM, Meinte van't Kruis <[EMAIL PROTECTED]>wrote:

Could you elaborate? Maybe I'm missing something but if you have two mouse
enabled objects
(where A completely overlaps B), I don't see any way to know if a mouse is
over object B, I've tried
different ways, but haven't been able to do it..


On Fri, Aug 29, 2008 at 3:31 PM, eric e. dolecki <[EMAIL PROTECTED]>wrote:

Think you need to drink some "bubbly" - bubbling events

On Fri, Aug 29, 2008 at 8:40 AM, Matthias Dittgen <[EMAIL PROTECTED]
wrote:
but imagine one of the mc overlapping the whole other mc.

MovieClips: A and B. A is overlapping B

if the mouse is over A but not over B: i want receive a ROLL_OVER for A
if the mouse is over A and over B: i want receive a ROLL_OVER for A
and a ROLL_OVER for B

an I don't want to replace them. A and B are siblings and will always
be siblings.


On Fri, Aug 29, 2008 at 1:30 PM,  <[EMAIL PROTECTED]> wrote:
drop them in a movieclip and add an event Listener to that
------Original Message------
From: Matthias Dittgen
Sender:
To: Flash Coders List
ReplyTo: Flash Coders List
Sent: Aug 29, 2008 6:03 AM
Subject: [Flashcoders] MouseEvents on overlapping siblings in AS3

Hello,

this was probably asked before, but I can't find.
Imagine two or more sibling MovieClips. Both listen to
MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
I would like the event to be dispatched to both of them and not only
to the one above the other? How can I achieve this without using
hitTest or enterframe scripts?

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


Sent via BlackBerry from T-Mobile
_______________________________________________
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

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


--
M.A. van't Kruis
http://www.malatze.nl/





--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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

Reply via email to