title: AS3 embedding CSV files and reading from them
body: <p>So in a simple arcade/platformer game, I'm making it so I have a .csv text file set out like so:</p>
  
  <p>660, 25, 0</p>
  
  <p>720, 15, 1</p>
  
  <p>etc..</p>
  
  <p>The first number being the x coordinate, the next being the y coordinate and the last being whether the block kills you or not. Loading this data externally is not a problem and works fine but when it comes to actually running the .swf by itself obviously the .csv file is not embedded into it so I cannot access any values from it.</p>
  
  <p>Therefore my question is: <strong>How can I embed a .csv file into my project and then read out 3 values per line into a multi dimensional array with each line denoting a different obstacle?</strong></p>
  
  <p>(The multi dimensional array being <strong>[obstacleID][0 for x coord/1 for y coord/2 for whether it kills or not]</strong>)</p>