It's not exactly what you're looking for, but you can use the

childIndexChange

event dispatched by the ViewStack.

On Fri, Mar 12, 2010 at 12:05 PM, Laurence <[email protected]> wrote:

>
>
> I replaced creationComplete="init();" with show="init();", but it never
> seems to get called now... So I guess either the show event isn't getting
> thrown, or I'm not using it properly...
>
> Any suggestions?
>
>
> L.
>
> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "valdhor" <valdhorli...@...> wrote:
> >
> > As I understand it, yes.
> >
> > CreationComplete will only fire once (When the component is first
> created). From then on you will need to monitor the show event if you need
> to make changes based on when the component is displayed.
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Laurence" <LMacNeill@> wrote:
> > >
> > > I have not. "show" happens every time the child of the ViewStack shown,
> I assume? And no other times? Sounds like that might work.
> > >
> > > The first time you switch to that view, the CreationComplete event
> happens, of course. Does the Show event occur after CreationComplete is
> done, or before? I assume after, but I don't want to guess incorrectly.
> > >
> > > Thanks,
> > > L.
> > >
> > >
> > > --- In [email protected] <flexcoders%40yahoogroups.com>,
> "valdhor" <valdhorlists@> wrote:
> > > >
> > > > Have you tried the show event?
> > > >
> > > > --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Laurence" <LMacNeill@> wrote:
> > > > >
> > > > > I've been using a ViewStack to switch between views in my app...
> The first time you jump to a particular view, that view runs throws its
> CreationComplete event, whereupon I have it running an init() function.
> > > > >
> > > > > The subsequent times you jump to that view, there is no
> CreationComplete event, obviously...
> > > > >
> > > > > So what I need is an event that happens every time you jump to that
> view in the ViewStack... So I can intialize the view properly on the 2nd,
> 3rd, 4th, etc, time you jump to that view...
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Thanks,
> > > > > Laurence MacNeill
> > > > > Mableton, Georgia, USA
> > > > >
> > > >
> > >
> >
>
>  
>

Reply via email to