From Flash Media Server I am gathering a list of video’s that are available to stream sent to my Flex 2 application. I then take the response (the list) and trace to make sure that it’s there:
// if i don't access the "name" property, I don't see anything
trace(response[0].name);
I then loop through the array, and add it to an ArrayCollection (it seems redundant extracting and array and adding it to an array again):
var i:int;
for (i=0; i<response.length; i++)
{
responderArray.addItem(response*.name);
}
Then I trace the new array to verify that it contains the right information, and attempt to use it as a dataProvider for myList:
trace(responderArray);
myList.dataProvider(responderArray);
It just plain ol’ doesn’t work. I can’t seem to add the information contained in my array (either the original response array, or my newly formed ArrayCollection) to add to myList component.
The Flex error that I keep getting in debug is:
“TypeError: Error #1006: value is not a function.”
This just doesn’t make sense to me… I would VERY much appreciate some help with this!