This content has been marked as final. Show 4 replies
I have an HTTPService in a main MXML file. Now when I embed the custom component (ie chart) how do I send the data from that HTTPService into the component?
HTTPService usually gets data in XML, JSON, AMF or what-have-you format.
Charts usually take array or collection of objects.
So, you get data from http services, convert it into a collection of objects and pass that collection to the chart to plot.
Hope this helps.
How would I go about importing the XML file called by the HTTPService into a Collection?
You'll need to study e4x and XMLListCollection