A simple null check tells you whether they've been created or not.

 

But you should avoid writing your app in this way. Instead,you should
pull data into components as they get created, such as by writing an
'initialize' handler on that component.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ltkavanagh
Sent: Thursday, April 24, 2008 2:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to check if components have been created yet
when creation policy is auto

 

Hi,

I am trying to checking if children of a viewstack have been created 
when the viewstack's creation policy is set to auto (as per default). 
I am getting a null pointer reference when trying to access a value on 
a component nested in a viewstasck.

I would assume i need to check if the children have been made first 
and if not call myViewStack.createComponentsFromDescriptors(true);

Does anyone know the way to check this?

Many Thanks

Luke

 

Reply via email to