/ Flex

Data Binding an Array in Flex?

Can you do it?  No you can't.

Not directly anyway - Arrays aren't something that data binding works with in Flex.  ArrayCollection however, is something you can work with.  To use an Array as a bindable object, you can wrap it in an ArrayCollection.  It's similar, but not the same as an Array - you can't push, pull, pop or shift things anymore - you have to work with other methods like addItem or removeItem.

I would've liked to find that all of those classic array methods still worked, but what can you do?

James Ford

James Ford

Front End web developer, author of the Flash Facebook Cookbook and Senior Developer at Deeson.

Read More