Don't know about constructObject2, but init is called for you by UIObject 
when she's done setting stuff up.  You CAN override it in ActionScript, but 
not MXML.

However, you're better off just have your initialize event call a function 
in your MXML and do non-GUI related stuff there.

----- Original Message ----- 
From: "G" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, July 27, 2006 3:25 PM
Subject: [flexcoders] constructObject2() vs. init()? (Flex 1.5)


Quick question:  What is the relationship between
constructObject2 and init?  The document I found on
creating components does not mention constructObject2,
but the flex compiler seems not to allow overriding of
init() (in an mxml file).

But init() does not take parameters.  Does one call
the other?  Are they analogous for different
situations?

Thanks,

Greg

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
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








--
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