I'd bind both sets of elements to the same dataproviders and that should
keep them synchronous without any extra work on your part.

 

Databinding via dataproviders has, for me anyhow, been really a good thing.
Use it.  It's not like the bad-old VB 1.0 days when it had promise but was
totally frustrating.  IT seems to work in Flex.

 

1.      Design visuals.
2.      Make objects that contain the data you want to display
3.      Bind the objects to the visuals via dataproviders
4.      Write some code to fill out the object and the UI will work.

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 11:15 AM
To: [EMAIL PROTECTED]; [email protected]
Subject: [flexcoders] Synchronizing data between viewStack elements

 

When a user clicks on a container built with repeated array collection 
elements in one viewStack layer, the selected element needs to be 
utilized to populate the data in a second viewStack layer and 
vice-a-versa.

Conceptually how does one do this? Do I set some type of global 
variable|pointer or pass the objects from one view to the other somehow 
or can one view layer be aware of another's data?

I suspect this is not a detailed enough description, please feel free to 
ask questions to help me describe the specifics.

 

Reply via email to