0 Replies Latest reply on Mar 12, 2009 6:43 AM by angadala

    change this to an XML array collection with an HTTP service in flex 3.0

      I need to change this to an XML array collection with an HTTP service in flex 3.0

      private var flatData:ArrayCollection = new ArrayCollection([
      { Country:"India", State:"Karnataka", Region:"South-West", Company:"Horizon", Product:"flexo",
      Year:"2000", Quarter:"Q1", Month:"Jan", Sales:-10, Cost:5, Production: 20 },
      { Country:"India", State:"Tamil Nadu", Region:"South-East",Company:"Horizon", Product:"flexo",
      Year:"2000", Quarter:"Q1", Month:"Mar", Sales:10, Cost:5, Production: 20 },
      { Country:"India", State:"Kerala", Region:"South-West", Company:"Horizon", Product:"flexo",
      Year:"2000", Quarter:"Q4", Month:"Nov", Sales:10, Cost:5, Production: 20},
      { Country:"India", State:"Assam", Region:"North-East", Company:"Horizon", Product:"Trinetra",
      Year:"2000", Quarter:"Q1", Month:"Feb", Sales:40, Cost:20, Production: 20 },
      { Country:"India", State:"Kerala", Region:"South-West", Company:"Horizon", Product:"Trinetra",
      Year:"2000", Quarter:"Q4", Month:"Dec", Sales:55, Cost:27.5, Production: 20 },
      { Country:"India", State:"Karnataka", Region:"South-West", Company:"Horizon", Product:"Trinetra",
      Year:"2000", Quarter:"Q2", Month:"Apr", Sales:20, Cost:10, Production: 20 },
      // confusion
      { Country:"India", State:"Delhi", Region:"North-East", Company:"Confusion", Product:"Besto",
      Year:"2000", Quarter:"Q1", Month:"Jan", Sales:20, Cost:10, Production: 20 },
      { Country:"India", State:"Orissa", Region:"South-East", Company:"Confusion", Product:"Besto",
      Year:"2000", Quarter:"Q1", Month:"Feb", Sales:10, Cost:5, Production: 20 },
      { Country:"India", State:"Gujrat", Region:"North-West", Company:"Confusion", Product:"Besto",
      Year:"2001", Quarter:"Q4", Month:"Oct", Sales:50, Cost:25, Production: 20 },
      { Country:"India", State:"Delhi", Region:"North-East", Company:"Confusion", Product:"Besto",
      Year:"2001", Quarter:"Q4", Month:"Nov", Sales:60, Cost:30, Production: 20 },
      { Country:"India", State:"Tamil Nadu",Region:"South-East", Company:"Confusion", Product:"Besto",
      Year:"2001", Quarter:"Q4", Month:"Dec", Sales:70, Cost:35, Production: 20},
      { Country:"India", State:"Gujrat", Region:"North-West", Company:"Confusion", Product:"Best",
      Year:"2000", Quarter:"Q1", Month:"Mar", Sales:30, Cost:15, Production: 20 }
      ]);
      can u pls tell me