On 12/22/05, JesterXL <[EMAIL PROTECTED]> wrote: > I believe all children of Flex containers need to implement the IUIComponent > interface. Therefore, it's by design, not a bug.
Content children of mx.core.Container must be of type mx.core.IUIComponent, because Container queries every child object for its preferred size, minimum and maximum sizes, percentage size (width="x%") and so on, to do its measurement and layout. This is going to be more strictly enforced in the next build in both MXML and AS. If you have a non-IUIComponent DisplayObject and want to add it as a Container child, the easiest way is to wrap it into a UIComponent instance. In some very rare cases (for performance), you may want to subclass it to implement the IUIComponent interface. Manish ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/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/

