title: AS3 addChild with TextFields only showing the last one added
body: <p>I'm building a Facebook client in actionscript, and I'm running into a problem. I have this block of code:</p>
  
  <pre><code>        var loader:URLLoader = URLLoader(event.target);
  
          var feedResponse:String = (event.target.data);
          var object:Object = JSON.decode(feedResponse); //getting the data
  
          var friendsStatus:Array = new Array(); //array for status'
          var friendsName:Array = new Array(); //array for names
  
          var startX:int = 120;
          var startY:int = 100;
  
          var myFormat:TextFormat = new TextFormat();
          myFormat.size = 16;
  
          var statusMessage:TextField = new TextField();
          statusMessage.defaultTextFormat = myFormat;
          statusMessage.wordWrap = true;
          statusMessage.width = 600;
  
          var faceFriend:TextField = new TextField();
          faceFriend.defaultTextFormat = myFormat;
          faceFriend.wordWrap = true;
          faceFriend.width = 300;
  
          for(var i:int = 0; i &lt; 10; i++)
          {
              if(object.data[i].message == undefined){
                  var userStory:String = object.data[i].story; // mowing through the facebook JSON response
                  friendsStatus[i] = userStory;
              } else {
                  var userStatus:String = object.data[i].message;
                  friendsStatus[i] = userStatus;
              }
  
              var fName:String = object.data[i].from.name;
              friendsName[i] = fName;
          } 
  
          for(var j:int; j &lt; 10; j++) // The headache loop
          {
              faceFriend.x = startX;
              faceFriend.y = startY;
  
              faceFriend.text = friendsName[j]; //assign the current name to the TextField text property
              addChild(faceFriend); //add it to the stage
              startY += 30; //increase the y value so they dont overlap
              trace(startY);
              trace(faceFriend.text);
              trace("");
  
              statusMessage.x = startX;
              statusMessage.y = startY;
  
              statusMessage.text = friendsStatus[j]; //same here for the status'
              addChild(statusMessage);
              startY += 20;
              trace(startY);
              trace(statusMessage.text);
              trace("");
          }
  </code></pre>
  
  <p>which is supposed to loop through a set of status', assign them to variables and add them to the stage. However, all I achieve is the very last status being added to the stage.
  As you can see from all the traces, I have discovered that all the arrays have the correct information, and the y value (so its not all on top of each other) is progressing correctly. It just refuses to let anything but the final TextField be visible :(</p>
  
  <p>Any ideas?</p>
  
  <p>P.S. I realise it's not exactly brilliant code - sorry for the headache in advance :P</p>