RE: [flexcoders] removePopUp on rollout, but not if rollOver popup itself?

2009-01-23 Thread Alex Harui
The event should have a relatedObject property that is “rollInto”

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Haykel BEN JEMIA
Sent: Friday, January 23, 2009 12:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] removePopUp on rollout, but not if rollOver popup 
itself?

I had the same problem with a component I developed and the only solution I 
found was to track rollOver and rollOut on both components (in your case for 
the day and the popUp). For every component I set a flag to true on rollOver. 
On rollOut I set it to false then only if both flags are false I remove the 
popUp and clean the event listeners.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com



On Fri, Jan 23, 2009 at 3:12 AM, Tracy Spratt 
mailto:tspr...@lariatinc.com>> wrote:

I have a calendar component.  When I rollOver a day that has a calendar event, 
I pop-up a panel with the event's detail.

I want to hide the detail popup when the user rolls out of the day.

But if I roll over the currently displayed popup, flex registers a rollout of 
the day, hides the pop-up, but then the cursor is still over the day so the 
popup tries to display, which registers a rollout, so my UI just blinks.

I looked for a "rollInto" property I could check, but didn't find anyting 
useful.

Any suggestions?

Maybe I need to track rollOver on the popUp, and set a flag and check that in 
the day rollOver handler?

Tracy Spratt

Lariat Services

Flex development bandwidth available




Re: [flexcoders] removePopUp on rollout, but not if rollOver popup itself?

2009-01-23 Thread Haykel BEN JEMIA
I had the same problem with a component I developed and the only solution I
found was to track rollOver and rollOut on both components (in your case for
the day and the popUp). For every component I set a flag to true on
rollOver. On rollOut I set it to false then only if both flags are false I
remove the popUp and clean the event listeners.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Fri, Jan 23, 2009 at 3:12 AM, Tracy Spratt  wrote:

>I have a calendar component.  When I rollOver a day that has a 
> calendarevent, I pop-up a panel with the event
> 's detail.
>
> I want to hide the detail popup when the user rolls out of the day.
>
> But if I roll over the currently displayed popup, flex registers a rollout
> of the day, hides the pop-up, but then the cursor is still over the day so
> the popup tries to display, which registers a rollout, so my UI just blinks.
>
> I looked for a "rollInto" property I could check, but didn't find anyting
> useful.
>
> Any suggestions?
>
> Maybe I need to track rollOver on the popUp, and set a flag and check that
> in the day rollOver handler?
>
> Tracy Spratt
>
> Lariat Services
>
> Flex development bandwidth available
>
>  
>


RE: [flexcoders] removePopUp on rollout, but not if rollOver popup itself? - solved

2009-01-22 Thread Tracy Spratt
Yeak, setting flags works, so problem solved, but I'd like to hear any
other suggestions.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Thursday, January 22, 2009 9:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] removePopUp on rollout, but not if rollOver popup
itself?

 

I have a calendar component.  When I rollOver a day that has a calendar
event, I pop-up a panel with the event's detail.

I want to hide the detail popup when the user rolls out of the day.  

But if I roll over the currently displayed popup, flex registers a
rollout of the day, hides the pop-up, but then the cursor is still over
the day so the popup tries to display, which registers a rollout, so my
UI just blinks.

I looked for a "rollInto" property I could check, but didn't find
anyting useful.

Any suggestions?

Maybe I need to track rollOver on the popUp, and set a flag and check
that in the day rollOver handler?

Tracy Spratt

Lariat Services

Flex development bandwidth available

 



[flexcoders] removePopUp on rollout, but not if rollOver popup itself?

2009-01-22 Thread Tracy Spratt
I have a calendar component.  When I rollOver a day that has a calendar
event, I pop-up a panel with the event's detail.

I want to hide the detail popup when the user rolls out of the day.  

But if I roll over the currently displayed popup, flex registers a
rollout of the day, hides the pop-up, but then the cursor is still over
the day so the popup tries to display, which registers a rollout, so my
UI just blinks.

I looked for a "rollInto" property I could check, but didn't find
anyting useful.

Any suggestions?

Maybe I need to track rollOver on the popUp, and set a flag and check
that in the day rollOver handler?

Tracy Spratt
Lariat Services

Flex development bandwidth available