Perhaps you don't really want to pass the data in the constructor?  You
can pass data into a custom component through the mxml declaration tag:
<comp:MyCanvas id="myc" dataIn="{oMyDataObject}" .../>

Just declare a public var in the component "dataIn".  Or make it a
setter function if you want to take some complex action.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, October 24, 2005 9:43 PM
To: [email protected]
Subject: [flexcoders] How to do constructor when extending Container

I am trying to extend the Canvas in an .as file, following the Rich
Client book by Webster et al, of course mine is more complicated as it
contains other components whose attributes need to be initialized. I
need to pass some attributes in via the constructor. Could someone
show me a code snippet that illustrates this, or tell me the "right"
way to do it?

Thanks,
Libby






--
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 --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/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/
 



Reply via email to