Sadly, I get the same results (null object reference) even if I add
the following to my AS code:



var viewObj:myChildComponent = new myChildComponent();
trace("viewObj created");
app.vwStack.addChild(viewObj);
viewObj.init();

* 'app' refers to my the <mx:Application> in my main mxml file.  
It has a viewStack 'vwStack'.
The viewStack has creationPolicy="all".


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Children are not created until the parent is added to the display list.
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of jerusalem_pilgrim
> Sent: Monday, April 21, 2008 11:54 AM
> To: [email protected]
> Subject: [flexcoders] MXML inheritance
> 
> Results of execution:
> viewObj created
> base object init()
> child init()
> Container from child: null null (should be references to the Container)
> Container from base: null null (should also be references to the
> Container)
>


Reply via email to