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 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 wondering if there's a way to inspect a component that you've just now
> been given a reference to, that may or may not have created itself already.
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "valdhor" <valdhorli...@...> wrote:
> >
> > 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 flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "valdhor" <valdhorlists@> wrote:
> > >
> > > If it has already fired then your event handler will have run.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "dfalling" <dfalling@> 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?
> > > >
> > >
> >
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,

Reply via email to