294946 Static Array Collection 2 XML
N/A
Betalt ved levering
I need to change this to an XML array collection with an HTTP service in flex 3.0
<mx:Script>
<![CDATA[
import [url removed, login to view];
[Bindable]
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 }
]);
]]>
</mx:Script>
Please let me know if You can do!
Thanks
Projekt ID: #2041256