[flexcoders] Re: ViewStack and CreationComplete...

2010-03-12 Thread Laurence
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 flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: As I understand it,

Re: [flexcoders] Re: ViewStack and CreationComplete...

2010-03-12 Thread Richard Rodseth
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 lmacne...@comcast.net wrote: I replaced creationComplete=init(); with show=init();, but it never seems to get called now... So I

[flexcoders] Re: ViewStack and CreationComplete...

2010-03-12 Thread turbo_vb
Hey Laurence, When ViewStack children are instantiated the creationComplete event is dispatched, but not the show event. So, if you navigate to the second ViewStack child, the first time, you'll only get creationComplete. After that, when you navigate to the second child the show event will

[flexcoders] Re: ViewStack and CreationComplete...

2010-03-11 Thread valdhor
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 flexcoders@yahoogroups.com, Laurence lmacne...@... wrote: I

[flexcoders] Re: ViewStack and CreationComplete...

2010-03-10 Thread valdhor
Have you tried the show event? --- In flexcoders@yahoogroups.com, Laurence lmacne...@... 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

[flexcoders] Re: ViewStack and CreationComplete...

2010-03-10 Thread Laurence
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