Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Posts: 23
Registered: ‎06-30-2011
My Device: bold
My Carrier: vodafone

Use an Array as dataprodiver for a List


I want to use an Array as dataprovider for a list. Has anyone an example?

How do I update the List if any item of the Array has changed?



Posts: 231
Registered: ‎05-03-2011
My Device: PlayBook V1 and proud of it :-)
My Carrier: Legs

Re: Use an Array as dataprodiver for a List

Your need to make the array bindable



internal var listOfItems:Array = new Array();


then when the array changes, the code is put into place to ensure anything that uses the array is updated.


Now just assign the array to the component (psudo code here)


component.dataprovider = listOfItems;

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
New Contributor
Posts: 8
Registered: ‎06-24-2011
My Device: Playbook
My Carrier: O2

Re: Use an Array as dataprodiver for a List

Could you provide more code as an example

I am trying to load a list of .mp3 files from a folder or assests into a ListBox and then once clicked assign the filename to the button along with the sound.


Many Thanks