Re: [flexcoders] Creating an ArrayCollection object for charting

2009-01-08 Thread john fisher
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#

Re: [flexcoders] Creating an ArrayCollection object for charting

2009-01-08 Thread Maciek Sakrejda
); -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: john fisher j...@jpfisher.net Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Creating an ArrayCollection object for charting Date: Thu, 08 Jan 2009 15:28:37 -0800 Can

Re: [flexcoders] Creating an ArrayCollection object for charting

2009-01-08 Thread john fisher
Thanks Maciek... I actually started that way, but it failed. I'll try again and post if I can't get it to work. Maciek Sakrejda wrote: It looks like you're creating a String that looks like the code for the object (i.e., { foo: 'bar' }), and then casting that to Object. That won't do what you

Re: [flexcoders] Creating an ArrayCollection object for charting

2009-01-08 Thread john fisher
Bless you! this is the syntax I didn't get- and behold, it works! excellent. Maciek Sakrejda wrote: then inside that loop, for each property you want to graph: currItem[element.name()] = element.valueOf();

[flexcoders] Creating an ArrayCollection object for charting

2009-01-07 Thread john fisher
I am feeding data to a chart from an arraycollection. When I test it by using a literal to create the data object the chart works fine, but when I assemble the data piece by piece, the chart fails. A correction of my syntax would be great, and explanation even better! I have tried creating an