In this recipe, we will demonstrate how to embed the CSV file shown in the previous recipe, how to read and parse the data in that file, and ultimately how to display the data in the file.
Create a new project for this chapter and place the three datafiles from the previous recipe in the
lib folder of the project (
data.xml). Copy the
Legend classes from the previous chapter into the
src folder. We will be using those again.
If you didn't complete the chapter, you can just start from the example project supplied with the book.
To avoid excessive code, we will also use the
StringHelper class from the Adobe ActionScript live docs that can be found at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#includeExamplesSummary ...