[flexcoders] Re: How to prevent children from causing a mouseOut event

2007-05-07 Thread Tom Sobut
To add to this, I found that when you implement rollOver and rollOut on a 
formItem, you'll 
need to define a backgroundColor on the formItem.  Without it you will get 
rollOuts and 
rollOvers between the children in your formItem.

If anyone knows a better way around this, let me know.  Otherwise, it works.

--- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote:

 
 I should have asked 5 hours ago !  ;-)
 
 Thanks Gordon
 
 
 --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
 
  Use rollOver and rollOut instead of mouseOver and mouseOut.
 
  - Gordon
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of iko_knyphausen
  Sent: Wednesday, April 25, 2007 10:32 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How to prevent children from causing a mouseOut
  event
 
 
 
 
  Hi everyone,
 
  I am struggling with mouse events in a canvas. I have a canvas in an
  itemRenderer and in it some buttons. When the user moves the mouse
 over
  any of the buttons, the canvas receives a mouseOut event, although
 these
  buttons are children of the canvas. I want to use the mouseOut on the
  canvas for other missions, such as hiding/displaying the buttons.
 
  Anyone know a good way to get control over this?
 
  Thanks much
 
  Iko
 





RE: [flexcoders] Re: How to prevent children from causing a mouseOut event

2007-05-07 Thread Gordon Smith
DisplayObjects in which you don't draw anything don't dispatch mouse
events. (You can draw transparent pixels, though.)
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Sobut
Sent: Monday, May 07, 2007 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to prevent children from causing a
mouseOut event



To add to this, I found that when you implement rollOver and rollOut on
a formItem, you'll 
need to define a backgroundColor on the formItem. Without it you will
get rollOuts and 
rollOvers between the children in your formItem.

If anyone knows a better way around this, let me know. Otherwise, it
works.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, iko_knyphausen [EMAIL PROTECTED] wrote:

 
 I should have asked 5 hours ago ! ;-)
 
 Thanks Gordon
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote:
 
  Use rollOver and rollOut instead of mouseOver and mouseOut.
 
  - Gordon
 
  
 
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
]
 On
  Behalf Of iko_knyphausen
  Sent: Wednesday, April 25, 2007 10:32 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] How to prevent children from causing a
mouseOut
  event
 
 
 
 
  Hi everyone,
 
  I am struggling with mouse events in a canvas. I have a canvas in an
  itemRenderer and in it some buttons. When the user moves the mouse
 over
  any of the buttons, the canvas receives a mouseOut event, although
 these
  buttons are children of the canvas. I want to use the mouseOut on
the
  canvas for other missions, such as hiding/displaying the buttons.
 
  Anyone know a good way to get control over this?
 
  Thanks much
 
  Iko
 




 


[flexcoders] Re: How to prevent children from causing a mouseOut event

2007-04-25 Thread iko_knyphausen

I should have asked 5 hours ago !  ;-)

Thanks Gordon


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Use rollOver and rollOut instead of mouseOver and mouseOut.

 - Gordon

 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of iko_knyphausen
 Sent: Wednesday, April 25, 2007 10:32 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to prevent children from causing a mouseOut
 event




 Hi everyone,

 I am struggling with mouse events in a canvas. I have a canvas in an
 itemRenderer and in it some buttons. When the user moves the mouse
over
 any of the buttons, the canvas receives a mouseOut event, although
these
 buttons are children of the canvas. I want to use the mouseOut on the
 canvas for other missions, such as hiding/displaying the buttons.

 Anyone know a good way to get control over this?

 Thanks much

 Iko