Last week I searched a little on a problem with bindings in Flex. Seemed like I couldn’t add a binding to an Array. After a question on Stack someone gave me the answer. Apparently it is well documented in the Flex 3 help (link)

Quote:

When defining a data binding expression that uses an array as the source of a data binding expression, the array should be of type ArrayCollection because the ArrayCollection class dispatches an event when the array or the array elements change to trigger data binding. For example, a call to ArrayCollection.addItem(), ArrayCollection.addItemAt(), ArrayCollection.removeItem(), and ArrayCollection.removeItemAt() all trigger data binding.

pixel Flex Data Binding expressions and Arrays
No TweetBacks yet. (Be the first to Tweet this post)