Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-03 Thread Matthias Dittgen
Thanks for all the answers!!! So I went back to a solution where the upper MovieClip listens to the MouseMove event and hittest while the lower MovieClip is using Rollover now. That works for me. But nonetheless it is frustrating that there is no other way to get an ROLLOVER event for two or even

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-03 Thread allandt bik-elliott (thefieldcomic.com)
yeh hittests are the slowest way of doing things but they have their place On Wed, Sep 3, 2008 at 9:26 AM, Matthias Dittgen [EMAIL PROTECTED]wrote: Thanks for all the answers!!! So I went back to a solution where the upper MovieClip listens to the MouseMove event and hittest while the

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Arka Roy
Here's a very good article about how mouse events propagate. http://www.adobe.com/devnet/actionscript/articles/event_handling_as3.html You should be able to have more than one MC capture a single event, although I haven't tried it. A On Fri, Aug 29, 2008 at 8:03 PM, Matthias Dittgen [EMAIL

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Glen Pike
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread EECOLOR
Just a guess, but you could change the listener to MOUSE_OVER instead of ROLL_OVER. The difference between the two is very subtle and explained at the reference documentation of InteractiveObject. I am not sure if it is applicable to the problem posed. Greetz Erik

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
I think rollover means it will fire once, wether or not it 'rolls' over a child of that parent. With mouseover, the event will fire each time the mouse also get's over a child of the parent which is listening to the event. (in short; rollover is like a parent with mouseover only with mousechildren

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-08-29 Thread davidorog
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-08-29 Thread Matthias Dittgen
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-08-29 Thread eric e. dolecki
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

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-08-29 Thread Cedric Muller
Poetry!!! and yet, a good answer Le 29 août 08 à 15:31, eric e. dolecki a écrit : 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