Flex Data Binding expressions and Arrays
Adobe April 14th, 2009Last 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
ArrayCollectionbecause theArrayCollectionclass dispatches an event when the array or the array elements change to trigger data binding. For example, a call toArrayCollection.addItem(),ArrayCollection.addItemAt(),ArrayCollection.removeItem(), andArrayCollection.removeItemAt()all trigger data binding.
No TweetBacks yet. (Be the first to Tweet this post)
Follow Me!