title: AS3: Store array in shared object
body: <p>I have searched for an answer to this question for quite a while but can't seem to find a definite one. Basically what I am trying to do is take an Array and store it within a shared object, and then read what is stored in the object and put it back into an array list when the script is started (hope this makes sense).</p>
  
  <p>At the moment I am led to believe that shared objects can only store multiple variables, so I am not sure how I would go about adding an array to one.</p>
  
  <p>The array itself is declared as shown here:</p>
  
  <pre><code>var lvl1highScores:Array = new Array();
  </code></pre>
  
  <p>And it can be added to by the user every time they reach a high score in each level as so:</p>
  
  <pre><code>    lvl1highScores.push({score:int(vinylCollected) , player:String(highScoreInput.text)});
  lvl1highScores.sortOn("score", Array.DESCENDING | Array.NUMERIC);
  </code></pre>
  
  <p>I hope this is enough information for someone to help out. If I am unable to store the whole array in a shared object, is there any other way of storing this information?</p>
  
  <p>Cheers</p>