any kind of suggestion would be highly appreciated.... -k
--- In flexcoders@yahoogroups.com, "keishichi2001" <[EMAIL PROTECTED]> wrote: > > My application has popup window which is triggered from the main > application. > > var popup:Object = PopUpManager.popUpWindow(sWindow, this, modal); > PopUpManager.centerPopUp(popup); > > Pop-uped dialog has a form and a submit button. > When user fills and submit the form, data will be updated via my > webservice. Also this dialog will be closed. > > After closing the dialog, main application should invoke another > webservice to refresh a TileList that refers updated data by the > dialog form. > > I thought i should.... > (1) diapatch a custom event when the dialog closed. > (dialogwindow.mxml) > ... > <mx:Metadata> > [Event("RELOAD_DATA")] > </mx:Metadata> > ... > <mx:Script> > <![CDATA[ > // submit form here... > dispatchEvent(new Event("RELOAD_DATA")); > ]]> > </mx:Script> > > (2) and listen the event and invoke handle function to refresh the > TileList. > (main.mxml) > private function onCreationComplete() { > addEventListener("RELOAD_DATA", loadData); > } > private function loadData() { > // logic to invoke a webservice here... > } > > When i run this application no error is reported, and the TileList is > not refreshed.... > Of course, the webservice works well. > So i'm wrong at some point handling custom event... > > Please correct me. > > > TIA, > Keishichi > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/