Check this link: http://www.cflex.net/showfiledetails.cfm?ObjectID=46 Tracy
-----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Thursday, October 27, 2005 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Create an Object with Custom event. Hi, I'm creating an object dynamically (a tab of a tabNavigator) and that object has a Custom event ('myEvent'), how do I initialize the handler for this when I create it dynamically? Normally you would do this: <quick:SalesQuery2 myEvent="doPrintForm(event)"/> But I am creating it dynamically like this (but it doesn't work!): var printThing; reportVO = new ReportVO(); reportVO = mainService.getReportVO.result; var cReports:VBox = null; var init:Object = null; init = new Object(); init.id="cnvReports"+printThing; init.label="Report Output "+printThing; init.myReportVO = reportVO; init.myEvent = "doPrintForm(event)"; cReports=VBox(myTabNavigator.createChild (SalesQuery2,"cnvReports",init)); myTabNavigator.selectedIndex = printThing; printThing++; Any help would be most appreciated. Regards, Iain -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/