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





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
 


Reply via email to