Can I define this better? Anybody got an idea?
john fisher wrote: > > > ################## This does not work: ################ > simpleData = new ArrayCollection([]); > var st:String = new String(); > > #left out the loops here for clarity # > st += '{' + "name:" + '"' + statNode.name + '", ' ; > # looped here through data # > var elname:String = element.name(); > var elvalue:Number = element.valueOf() ; > > st += elname + ":" + elvalue + ", " ; > var newst:String = st.slice(0, st.length-2 ); ////cuts off last white > space and comma > newst += '}' ; > simpleData.addItem( newst as Object ) ; > trace("ServerPopUp:makeChart simpledata: = " + > ObjectUtil.toString(simpleData) ); > ServerPopUp:makeChart simpledata: = (mx.collections::ArrayCollection)#0 > filterFunction = (null) > length = 1 > list = (mx.collections::ArrayList)#1 > length = 1 > source = (Array)#2 > [0] "{name:"se2", inpps:2233, refresh:3000, outpps:7799, > conns:2211, inbps:1144, inpkts:3322, outbps:2233, outpkts:4433, > inbytes:4455, outbytes:5544, cps:6655}" > uid = "9543B87D-14F5-0BC6-E2F0-B289C8EC32FC" > sort = (null) > source = (Array)#2 > > ##### > > thanks > John > > > > > > > > > > > > >