title: Shared objects not working correclty in flex -- Mobile
body: <p>I have a very simple test going with shared objects in flex with mobile I have a person class.</p>
  
  <pre><code>package
  {
      import flash.display.MovieClip;
  
  
      public class Person extends MovieClip
      {
          var personsname:String="";
          public function Person(name:String)
          {
              personsname = name;
          }
      }
  }
  </code></pre>
  
  <p>And then some simplish code in a view.</p>
  
  <pre><code>    var person1:Person;
                  var person2:Person;
                  var person3:Person;
                  var person4:Person;
                  var thePeople:Array=[];
                  var so:SharedObject;
                  function init():void{
                  person1 = new Person("james");
                  person2 = new Person("mike");
                  person3 = new Person("Amanda");
                  person4 = new Person("Shelly");
                  thePeople.push(person1,person2,person3,person4);
                      //so = SharedObject.getLocal("savedData"); //clear it again
                  ///so.clear(); // clear it again
                  savePeople();
                  getPeople();
                  }
  
                  private function savePeople():void{
                      so = SharedObject.getLocal("savedData");
                      if(so.data.thePeopleArray == null){
                          so.data.thePeopleArray = thePeople;
                          so.flush();
                      }
                  }
  
  
                  private function getPeople():void{
                      so = SharedObject.getLocal("savedData");
                      var thePeeps:Array = so.data.thePeopleArray;
                      trace(thePeeps);
              }
  </code></pre>
  
  <p>The first time I run this it traces out
  <code>[object Person]</code> 4 times
  I close the emulator and rebuild and run it traces out</p>
  
  <pre><code>,,,
  </code></pre>
  
  <p>If I clear out the so it show the <code>[object Person]</code> again, but comment out get the <code>,,,</code></p>
  
  <p>Can shared objects even store an array of objects properly. It is the same with the persistanceManager I believe.</p>