Type it as a Container Object.

Sorry i meant to say cast.



On 02/04/2007, at 4:21 PM, Alex Harui wrote:


DO doesn't have children, but getChildByName returns one. So you have to cast.

(app.getChildByname("topFrame") as DisplayObjectContainer).getChildByName("leftPane");

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: Sunday, April 01, 2007 6:42 PM
To: [email protected]
Subject: Re: [flexcoders] Accessing nested DisplayObjects programatically

Type it as a Container Object.


Can DisplayObject even contain children???


On 02/04/2007, at 7:52 AM, Alen Balja wrote:

Hi list,

Is there a way to access nested children of the Application object programatically? I have an app: Application object and inside I have HDividededBox (id="topFrame") and inside of this I have two more elements with ID properties. These are VBox (id="leftPane") and VBox (id="rightPane").

If I do like this:

topFrame = app.getChildByName("topContainer");





Reply via email to