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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

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

__,_._,___

Reply via email to