|
There is no function on the child pane
that is called when the ViewStack switches to it. All the ViewStack does is
bring that child to the front. But if you write a handler for the ViewStack's
"change" event, it will get called every time selectedIndex or selectedChild
changes. So you can do something like this: <mx:Script> private function
changeHandler(event:Event):void {
if (viewStack.selectedChild == pane1)
pane1.name = "Gordon"; }
</mx:Script> <mx:ViewStack id="vs"
chage="changeHandler(event)"> <mx:Canvas
id="pane0">
... </mx:Canvas> <mx:Canvas
id="pane1">
<mx:TextInput id="name"/> </mx:Canvas> </mx:ViewStack> If each pane were a component with a
reinitialzie() method that you wrote, you could simplify this so <mx:ViewStack
id="vs" change="vs.selectedChild.reinitialize()">
...
<mx:ViewStack> But using databinding is even easier. - Gordon From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jlentz2112 How do you reinitialize a pane? Is there some function
that is called -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] How to invalidate ViewStack Pages Dimitrios Gianninas
- RE: [flexcoders] How to invalidate ViewStack Page... Gordon Smith
- [flexcoders] Re: How to invalidate ViewStack ... jlentz2112
- RE: [flexcoders] Re: How to invalidate Vi... Gordon Smith
- [flexcoders] Re: How to invalidate Vi... jlentz2112

