On 4/19/05, Ronald Kinion <[EMAIL PROTECTED]> wrote: > It's not clear to me from the docs if that would work. I'm thinking that > this may work better : > > change="mainViewStack.selectedIndex = > mainViewStack.getChildIndex(this[event.target.selectedItem.data])"
Yes, that's what 'set selectedChild' does internally. It looks for the index, plus it does some bounds checking (what if the child isn't really a child of the ViewStack?). I suggest you use the selectedChild property if you have a reference to the child and let the ViewStack figure out the index. -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/