1 Reply Latest reply on Mar 28, 2008 12:46 PM by breez11

    Add item to arrayCollection

    breez11 Level 1
      When my xml response invokes the result handler of my httpService call I assign the xml a array collection. I want to take two values from my array collection and then add that item to the same array collection.

      this is my attempt

      private function resultHandler(event:ResultEvent):void{
      traffic = srv.lastResult.Output.Data;
      for (var i:int = 0; i<traffic.length; i++){
      var o:Object = {hLabel: traffic .month + ", "+ traffic.year};
      initLabel = "hLabel";

      Sample of the xml