Here is the code that opens the Title Window: 

// Pop-up Schedule adder 
----------------------------------------------------------------------------------
 
private function openSchedulerAdder():void 
{ 
var titleWindow:userScheduleDAC = 
userScheduleDAC(PopUpManager.createPopUp(this, userScheduleDAC, true)); 
titleWindow.AUTHKEY = authKey; 
titleWindow.businessPartnerID = businessPartnerID; 
titleWindow.ccUserID = ccUserID; 
titleWindow.usNameList_popup = usNameList2; 
titleWindow.RulesAndSchedNamesAc = RulesSchedsAc; 
titleWindow.userSuppliedScheduleName = cbxUserScheduleName.selectedLabel; 
titleWindow.userSuppliedScheduleName0 = cbxUserScheduleName0.selectedLabel; 
PopUpManager.centerPopUp(titleWindow); 
} 

Here is the code that is used to close the window ( it is called after a 
schedule has been added, updated or deleted: 
// Pop-up close function that closes window and updates list of schedules on 
the parent -------------------------------------- 
private function titleWindow_close(evt:CloseEvent):void 
{ 
parentApplication.stationFeatures.comMyRules.getUserScheduleList2(); 
PopUpManager.removePopUp(this); 
} 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
[email protected] 

----- Original Message ----- 
From: "valdhor" <[email protected]> 
To: [email protected] 
Sent: Monday, January 26, 2009 9:52:14 AM GMT -06:00 US/Canada Central 
Subject: [flexcoders] Re: Pop-up Window issue 






At this point, I think we need to see some code. 

--- In [email protected] , Eric Dunn <ed...@...> wrote: 
> 
> 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... 

Reply via email to