I have a simple component written in AS3 which extends VBox and contains a single child (a Label). In my Application mxml-file I create an instance of my component in a creationComplete-handler, but i dont add the component to the application (using addChild() )  before the user clicks a button. When this happens, the component is added to the container just fine, but it's children isn't visible... On the other side, if i add the component directly after instantiation in the creationComplete handler, or if I don't instantiate the component until the button click event, everything is ok...

Anyways, this is a bit difficult to explain, so here's the source code:

http://www.prepost.net/misc/App.mxml
http://www.prepost.net/misc/TestComponent.as

Is this a known bug?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to