Re: [flexcoders] Pop-up Window issue

2009-01-23 Thread Eric Dunn
I set break points on the method that launches the pop up. The break point 
never hits. 

I delete a schedule, pop up closes. I then try to delete another schedule and 
the schedule is deleted, I see the confirmation result (alert) and the window 
does not close and the breakpoint never stops the code. 
I am seeing that if I select another schedule, the deletion function is still 
active... meaning, that once I select another schedule, it is automatically 
deleted. Looks like I am not cleaning up, leaving event listeners active... 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 

- Original Message - 
From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Friday, January 23, 2009 12:29:42 PM GMT -06:00 US/Canada Central 
Subject: RE: [flexcoders] Pop-up Window issue 









Have a drink, then set break points on the method that pops up the dialog to 
make sure it is in fact being re-launched on close and examine the call stack 
to see why. Once we know why it will be easier to suggest fixes. 





From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn 
Sent: Friday, January 23, 2009 6:52 AM 
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Pop-up Window issue 







Any suggestions on how to stay out of this hole. I am using a button with a 
click and not using KEY_UP or KEY_DOWN or ENTER. This thing is driving me to 
drinking... 



Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 

- Original Message - 
From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Friday, January 23, 2009 12:03:04 AM GMT -06:00 US/Canada Central 
Subject: RE: [flexcoders] Pop-up Window issue 





I’ve seen something like this where the events in the pipeline get sent to the 
underlying app and result in dispatching an event that opens the dialog. For 
example, if you used ENTER to close the window, if someone leans on the ENTER 
key too long it repeats and the second ENTER goes to the app that activates the 
button that opened the dialog. You can also get in this hole if you use 
KEY_DOWN and KEY_UP 





From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com ] On 
Behalf Of Eric Dunn 
Sent: Thursday , January 22, 2009 12:21 PM 
To: flexcoders 
Subject: [flexcoders] Pop-up Window issue 







Not sure what is going on.. maybe someone can help .. 

Here is the set up: 

Main app with a "manage" button. The button opens a pop up TitleWindow where a 
user can add, update or delete schedules. Once a schedule has been added, 
updated or deleted, the hanged is pushed to the database and the window should 
close. I am passing variables in from the parent app. 

The Issue: The first schedule I delete works fine, the database gets updated 
and the window closes. Now if I try to open it again and delete another 
schedule, the window opens, the delete function works but the window does not 
close. While debugging, I see the correct varaibles passed in on window open, 
the delete function processes and then the variables revert to the orginal and 
the window never closes. I watch the code process the commands of close window 
but it never closes. The! thing that puzzles me most is the variables 
reverting... 

Anyone seen this or have an idea on how to resolve? 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 





RE: [flexcoders] Pop-up Window issue

2009-01-23 Thread Alex Harui
Have a drink, then set break points on the method that pops up the dialog to 
make sure it is in fact being re-launched on close and examine the call stack 
to see why.  Once we know why it will be easier to suggest fixes.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn
Sent: Friday, January 23, 2009 6:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Pop-up Window issue

Any suggestions on how to stay out of this hole. I am using a button with a 
click and not using KEY_UP or KEY_DOWN or ENTER. This thing is driving me to 
drinking...



Eric W Dunn
Adaption Technologies
281-465-3326
ed...@adpt-tech.com

- Original Message -
From: "Alex Harui" 
To: flexcoders@yahoogroups.com
Sent: Friday, January 23, 2009 12:03:04 AM GMT -06:00 US/Canada Central
Subject: RE: [flexcoders] Pop-up Window issue
I’ve seen something like this where the events in the pipeline get sent to the 
underlying app and result in dispatching an event that opens the dialog.  For 
example, if you used ENTER to close the window, if someone leans on the ENTER 
key too long it repeats and the second ENTER goes to the app that activates the 
button that opened the dialog.  You can also get in this hole if you use 
KEY_DOWN and KEY_UP

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn
Sent: Thursday, January 22, 2009 12:21 PM
To: flexcoders
Subject: [flexcoders] Pop-up Window issue

Not sure what is going on.. maybe someone can help ..

Here is the set up:

Main app with a "manage" button. The button opens a pop up TitleWindow where a 
user can add, update or delete schedules.  Once a schedule has been added, 
updated or deleted,  the hanged is pushed to the database and the window should 
close. I am passing variables in from the parent app.

The Issue:  The first schedule I delete works fine, the database gets updated 
and the window closes. Now if I try to open it again and delete another  
schedule, the window opens, the delete function works but the window does not 
close.  While debugging, I see the correct varaibles passed in on window open, 
the delete function processes and then the variables revert to the orginal and 
the window never closes. I watch the code process the commands of close window 
but it never closes. The! thing that puzzles me most is the variables 
reverting...

Anyone seen this or have an idea on how to resolve?

Eric W Dunn
Adaption Technologies
281-465-3326
ed...@adpt-tech.com



Re: [flexcoders] Pop-up Window issue

2009-01-23 Thread Haykel BEN JEMIA
Any code to test this behavior?

Haykel Ben Jemia

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




On Fri, Jan 23, 2009 at 3:52 PM, Eric Dunn  wrote:

>   Any suggestions on how to stay out of this hole. I am using a button
> with a click and not using KEY_UP or KEY_DOWN or ENTER. This thing is
> driving me to drinking...
>
>
>
> Eric W Dunn
> Adaption Technologies
> 281-465-3326
> ed...@adpt-tech.com
>
> - Original Message -
> From: "Alex Harui" 
> To: flexcoders@yahoogroups.com
> Sent: Friday, January 23, 2009 12:03:04 AM GMT -06:00 US/Canada Central
> Subject: RE: [flexcoders] Pop-up Window issue
>
>I've seen something like this where the events in the pipeline get sent
> to the underlying app and result in dispatching an event that opens the
> dialog.  For example, if you used ENTER to close the window, if someone
> leans on the ENTER key too long it repeats and the second ENTER goes to the
> app that activates the button that opened the dialog.  You can also get in
> this hole if you use KEY_DOWN and KEY_UP
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Eric Dunn
> *Sent:* Thursday, January 22, 2009 12:21 PM
> *To:* flexcoders
> *Subject:* [flexcoders] Pop-up Window issue
>
>
>
> Not sure what is going on.. maybe someone can help ..
>
> Here is the set up:
>
> Main app with a "manage" button. The button opens a pop up TitleWindow
> where a user can add, update or delete schedules.  Once a schedule has been
> added, updated or deleted,  the hanged is pushed to the database and the
> window should close. I am passing variables in from the parent app.
>
> The Issue:  The first schedule I delete works fine, the database gets
> updated and the window closes. Now if I try to open it again and delete
> another  schedule, the window opens, the delete function works but the
> window does not close.  While debugging, I see the correct varaibles passed
> in on window open, the delete function processes and then the variables
> revert to the orginal and the window never closes. I watch the code process
> the commands of close window but it never closes. The! thing that puzzles me
> most is the variables reverting...
>
> Anyone seen this or have an idea on how to resolve?
>
> Eric W Dunn
> Adaption Technologies
> 281-465-3326 
> ed...@adpt-tech.com
>
> 
>


Re: [flexcoders] Pop-up Window issue

2009-01-23 Thread Eric Dunn
Any suggestions on how to stay out of this hole. I am using a button with a 
click and not using KEY_UP or KEY_DOWN or ENTER. This thing is driving me to 
drinking... 



Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 

- Original Message - 
From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Friday, January 23, 2009 12:03:04 AM GMT -06:00 US/Canada Central 
Subject: RE: [flexcoders] Pop-up Window issue 









I’ve seen something like this where the events in the pipeline get sent to the 
underlying app and result in dispatching an event that opens the dialog. For 
example, if you used ENTER to close the window, if someone leans on the ENTER 
key too long it repeats and the second ENTER goes to the app that activates the 
button that opened the dialog. You can also get in this hole if you use 
KEY_DOWN and KEY_UP 





From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com ] On 
Behalf Of Eric Dunn 
Sent: Thursday , January 22, 2009 12:21 PM 
To: flexcoders 
Subject: [flexcoders] Pop-up Window issue 







Not sure what is going on.. maybe someone can help .. 

Here is the set up: 

Main app with a "manage" button. The button opens a pop up TitleWindow where a 
user can add, update or delete schedules. Once a schedule has been added, 
updated or deleted, the hanged is pushed to the database and the window should 
close. I am passing variables in from the parent app. 

The Issue: The first schedule I delete works fine, the database gets updated 
and the window closes. Now if I try to open it again and delete another 
schedule, the window opens, the delete function works but the window does not 
close. While debugging, I see the correct varaibles passed in on window open, 
the delete function processes and then the variables revert to the orginal and 
the window never closes. I watch the code process the commands of close window 
but it never closes. The! thing that puzzles me most is the variables 
reverting... 

Anyone seen this or have an idea on how to resolve? 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 





RE: [flexcoders] Pop-up Window issue

2009-01-22 Thread Alex Harui
I’ve seen something like this where the events in the pipeline get sent to the 
underlying app and result in dispatching an event that opens the dialog.  For 
example, if you used ENTER to close the window, if someone leans on the ENTER 
key too long it repeats and the second ENTER goes to the app that activates the 
button that opened the dialog.  You can also get in this hole if you use 
KEY_DOWN and KEY_UP

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn
Sent: Thursday, January 22, 2009 12:21 PM
To: flexcoders
Subject: [flexcoders] Pop-up Window issue

Not sure what is going on.. maybe someone can help ..

Here is the set up:

Main app with a "manage" button. The button opens a pop up TitleWindow where a 
user can add, update or delete schedules.  Once a schedule has been added, 
updated or deleted,  the hanged is pushed to the database and the window should 
close. I am passing variables in from the parent app.

The Issue:  The first schedule I delete works fine, the database gets updated 
and the window closes. Now if I try to open it again and delete another  
schedule, the window opens, the delete function works but the window does not 
close.  While debugging, I see the correct varaibles passed in on window open, 
the delete function processes and then the variables revert to the orginal and 
the window never closes. I watch the code process the commands of close window 
but it never closes. The! thing that puzzles me most is the variables 
reverting...

Anyone seen this or have an idea on how to resolve?

Eric W Dunn
Adaption Technologies
281-465-3326
ed...@adpt-tech.com



[flexcoders] Pop-up Window issue

2009-01-22 Thread Eric Dunn
Not sure what is going on.. maybe someone can help .. 

Here is the set up: 

Main app with a "manage" button. The button opens a pop up TitleWindow where a 
user can add, update or delete schedules. Once a schedule has been added, 
updated or deleted, the hanged is pushed to the database and the window should 
close. I am passing variables in from the parent app. 

The Issue: The first schedule I delete works fine, the database gets updated 
and the window closes. Now if I try to open it again and delete another 
schedule, the window opens, the delete function works but the window does not 
close. While debugging, I see the correct varaibles passed in on window open, 
the delete function processes and then the variables revert to the orginal and 
the window never closes. I watch the code process the commands of close window 
but it never closes. The thing that puzzles me most is the variables 
reverting... 

Anyone seen this or have an idea on how to resolve? 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com