There several options in Flash Lite 2 for getting data from the Internet onto your mobile device. However, for the sake of brevity—and because this is really an article about charting data once it's already on the phone—we'll mention just briefly that your options include the LoadVars function, the LoadVariables function, or loading and parsing XML via an XML object. The method you choose depends somewhat on the format of the data on the server.
For more information on importing data to a mobile device, refer to these other articles:
loadVariables)For this article's examples, we assign the array directly in ActionScript. To do so for the line chart, for example, create an array as follows:
var myData:Array = [0, 2, 4, 25];
Sample arrays are included in the tutorial files.