title: Javascript is passing an Array of Objects instead of an Array of Arrays
body: <p>I'm passing a <code>Javascript Array()</code> to Flash via <code>FlashVars</code> but Flash complains. Can you guys point me what am I doing wrong here?</p>
  
  <p><strong>javascript code</strong></p>
  
  <pre><code>// array with the user defined cities
  var usercities = new Array( 
      {'nome':"London", 'lat':51.5002, 'long':-0.1262 },
      {'nome':"NYC", 'lat':51.5002, 'long':-0.1262 } 
  );
  
  flashvars.newcities = usercities;
  </code></pre>
  
  <p><strong>flash code</strong></p>
  
  <pre><code>// this array is pre-populated so if the users doesn't enter data this is shown
  var cities:Array = new Array(
      { nome:"London", lat:51.5002, long:-0.1262 },
      { nome:"NYC", lat:40.7144, long:-74.0060 }
  );
  
  // gets FlashVars
  var newcities:Object = LoaderInfo(this.root.loaderInfo).parameters.newcities;
  if(newcities != null) {
      cities = newcities;
  };
  </code></pre>
  
  <p>Doesn't work. I need to have the <code>cities</code> array on the Flash Side exactly as it is. On the Javascript side all code can change.</p>
  
  <p>Thank you for your help.</p>