On 1/27/06, gunnar a reinseth <[EMAIL PROTECTED]> wrote:
>    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?

Sounds like a bug.  It shouldn't matter when you add it.  Even if you
reparent an object, it should work.


--
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/
 


Reply via email to