--- In flexcoders@yahoogroups.com, dfalling dfall...@... wrote:
Is there a publicly-exposed property on components that can be inspected to
determine if they have finished creation yet? I know I can listen for
creationComplete, but what can I do if it may have already been fired?
Check
I have found that inspecting the Boolean property initialized in UIComponent
is equivalent to determining if the creation complete event has fired for a
UIComponent...from the docs for Flex SDK 3.5:
initialized:Boolean
A flag that determines if an object has been through all three phases of
If it has already fired then your event handler will have run.
--- In flexcoders@yahoogroups.com, dfalling dfall...@... wrote:
Is there a publicly-exposed property on components that can be inspected to
determine if they have finished creation yet? I know I can listen for
I should probably clarify a bit.
You could create your own creationComplete flag.
private var thisComponentIsComplete:Boolean = false;
then set it in your creationComplete event handler
private function onCreationComplete():void
{
thisComponentIsComplete = true;
}
--- In
Man, I'm doing a terrible job communicating my problems.
So I want way for other components to inspect each other to see if they've
completed. I can't just listen to the event, because the creation could have
happened before I ever had a reference to the component to start listening.
I'm
Do what Valdhor explains:
public var compCreated:boolean = false ;
creationComplete()
{
compCreated = true ;
}
now when ever needed check if compCreated == true
On Wed, Sep 16, 2009 at 5:13 PM, dfalling dfall...@gmail.com wrote:
Man, I'm doing a terrible job communicating my problems.
So, I still don't understand. How would you create a component without having a
reference to it?
Also, if you have a public var thisComponentIsComplete:Boolean in your
component that gets set when the creationComplete event fires, why can't you
just ask the component if it has been created?
I have a custom tab navigator that will be attached to a viewstack. It needs
to know if the viewstack's children have been created or not. This could
happen before it is attached to the viewstack or some time after due to
creationPolicy, so I absolutely can't just listen for the
8 matches
Mail list logo