I'd be checking to see if handleClose gets called twice.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike Sent: Thursday, June 07, 2007 4:56 PM To: [email protected] Subject: [flexcoders] Re: Event is Raised ONCE and Firing TWICE Am I missing something? All you are suggesting is that I change the name from DOreadTally to ONreadTally? Is there something else? Bruce --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , RuneImp <[EMAIL PROTECTED]> wrote: > > On 6/7/07, boy_trike <[EMAIL PROTECTED]> wrote: > > > > I have a pop that when being closed, it raises an event that is handled in the parent > > component. However the event is being handled TWICE. > > <Code Snippet from Popup> > > public static const READ_TALLY : String = "doReadTally"; > > > > > > // CALLED WHEN USER CLICKS THE CLOSE BUTTON > > private function handleClose() : void { > > model.dispatchEvent(new Event(READ_TALLY) ); > > mx.managers.PopUpManager.removePopUp( this ); > > } > > > > <Code Snippet from Parent Component> > > > > > > private function init() : void { > > model.addEventListener(READ_TALLY, doReadTally); > > > > } > > > > public function doReadTally( event : Event) : void { > > trace('I am Here!'); > > cfcOrderEntry.readTally(model.webOrder.recID); > > } > > > > My TRACE in the doReadTally Function is displayed twice in the console. Any Suggestions? > > > > Try something like this instead. > > private function init():void > { > model.addEventListener(READ_TALLY, onReadTally); > } > > public function onReadTally(event:Event):void > { > trace('I am Here!'); > cfcOrderEntry.readTally(model.webOrder.recID); > } > > -- > RuneImp > ImpTech - Web Hosting, Design & Development > http://imptech.net <http://imptech.net> >

