On Feb 3, 2008 7:46 AM, learner <[EMAIL PROTECTED]> wrote: > * Flex component can not set their own height/width... they have to set > measure height/width. > * set width of the flex Text Area and then set the height... > * many more..... > ...................... which create a mixed feeling of curiosity and > confusion about the way to reuse flex component...
There is documentation on this here: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=ascomponents_advanced_148_13.html#203719 The reason for this rather indirect way of making your component indicate its desired height and width is to support containers that might wish to change your component's height and width in ways that you could not have anticipated when you wrote your component. > But i guess experiment and experience will give me better insight... But > still i wish the reuse of flex component should be more simple and > straightforward (May be i am dumb and not understanding originally simple > component architecture ) ..Just curious to know... Do everybody experiences > the more or less same level of difficulty in developing/reusing flex > component.???? It's not easy or straightforward, but everyone has to learn this set of rules in order to make robust Flex components. I'm still learning them myself. I think that the complexity of the Flex component layout system and lifecycle are one of the reasons that there is a dedicated "Flex component" mailing list (this list). To help us learn these rules and APIs, and so that we can help others as we become more proficient. e
