Add layout to Flex UIComponent
问题 How can I add a layout (a HorizontalLayout to be specific) to a Flex UIComponent? I'm working on a large mobile application, hence I'd like to avoid using additional containers like HGroups and work with more lightweight components. As usual, any help would be greatly appreciated! 回答1: You can't and you don't really need to. You can't, because only Spark components were designed with an encapsulated layout mechanism. mx components were not and you can't assign a layout to UIComponent. You don