How do you reinitialize a pane?  Is there some function that is called
everytime you switch to a new child?  I'm wanting to pass an object
into a child each time I call it, so I need someway to have a function
called automatically when a child is switched to, so I can
reinitialize and use the data just passed in.

Thanks,

jelentz
--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Databinding is one way to accomplish this:
> 
>  
> 
>     <mx:TextInput id="name" text="{someDataObject.name}"/>
> 
>  
> 
> Another would be to write a "change" handler on the ViewStack. Switch on
> the selectedIndex and re-initialize the pane you're changing to.
> 
>  
> 
> - Gordon
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of jlentz2112
> Sent: Friday, October 13, 2006 8:17 PM
> To: [email protected]
> Subject: [flexcoders] How to invalidate ViewStack Pages
> 
>  
> 
> Hi,
> 
> I've got a ViewStack that I navigate around using selectedIndex. It
> works fine the first time I go to a page, but when I leave and return
> to that same page, I need to have all the TextInput fields
> re-initialized. It doesn't seem to do that. Returning to a
> previously selected index displays the data that was there when I left
> that page - not the new data I have. Is there a way to force a child
> page to create or refresh its different fields?
> 
> Thanks,
> 
> jelentz
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to