A general rule in Flex layout management is
that children get positioned and sized by their parents. I suspect that the
reason you don't see anything is that item_button has a width and height of 0
by default. If you extend UIComponent, then it is your
responsibility to position and size all of your component's children (in this
case, item_button) in an override of updateDisplayList(). When you extend HBox, HBox's override of
updateDisplayList() implements the horizontal box layout algorithm for the
children. - Gordon From: Dear all, -- 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
__,_._,___ |
- RE: [flexcoders] Custom UIComponent creating problem Gordon Smith
- Re: [flexcoders] Custom UIComponent creating problem Michael Schmalle