Hi Libby
You might want to look into the creationComplete event. Depending
whether your using MXML or ActionScript varies in how you declare you
want to listen for it. Every Application, component etc has a seperate
creationComplete. In the application:
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:analyzer="views.*"
xmlns:components="components.*"
layout="horizontal"
viewSourceURL="srcview/index.html"
horizontalAlign="center"
verticalAlign="middle"
currentState="Configuration"
creationComplete="onCreationComplete()"
>
where you then add the function onCreationComplete in a Script node. If
you are creating a component with a class behind it (code behind) then
you can also add it in the constructor of the class:
addEventListener(FlexEvent.creationComplete, onCreationComplete);
hope this helps.
Sincerely
Mark R. Jonkman
--- In [email protected], "Libby" <[EMAIL PROTECTED]> wrote:
>
> Anybody? Is this too hard to help with, or so easy I shouldn't have
> wasted u guys time with it?
> --- In [email protected], "Libby" <libbychantel@> wrote:
> >
> > Hello flexSperts : )
> >
> > I want to do some prep work within my screen that requires all parts
> > of it to be constructed first. Is there a built-in event that fires
> > just before the screen is visible, but guarantees all parts are
> > constructed, that I could listen for? Maybe it occurs right after I
> > addChild() to my viewStack? If so, what would that event be? If not,
> > how do you guys handle this situation?
> >
> > Thanks,
> > Libby
> >
>