Hi All,
We're developing an application that permits selection of page objects
for editing from multiple views. We're trying to data-bind each of
the views to a shared selection object to reduce the connections
between components. This is working fine so long as you don't
interact with other parts of the application. We also have a section
list that filters the list of pages visible to the user. It appears
that changing the section causes the views to lose their bindings to
the selection object. This is confusing because, section selection
only operates on another 'pages' array. I don't understand why it
would affect the data bindings at all, especially since the bindings
are to an unrelated object.

I've attached a stripped down version of the application that exhibits
the same behavior. To see what I'm talking about:
1. Click on the page labels on the right side of the app. The word
'selected' should appear next to the page you clicked last.
2. Click on 'First' or 'Second' on the combo box to the left.
3. Click on the page labels again to the right. They no longer change.

The text for a page label is "{ page.label }{ selected(selection.list)
? ' (selected)' : '' }". Changes to selection.list automatically
update this data binding expression (at least until you change the
selection).

I would greatly appreciate any insight that anyone can provide. Also,
I would love to find an in-depth reference describing how data binding
works in Flex/Flash.

Thanks,
Alex Cruikshank
Engineer
Carbon Five

Attachment: testBindingProblem.mxml
Description: Binary data

Attachment: TestView.mxml
Description: Binary data

Reply via email to