[flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread hworke
Hi, when I am trying to read a RSS link with one item node in it I do not get anything but when the RSS link has more then one item node all the nodes show up. Why can't I read when RSS has only one item? How do I solve this problem? here is how I am handling the the result event of the

Re: [flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread Wesley Acheson
I think its because it doesn't know if its an item or a collection try the following. If its not this I can't help. var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection; if (f_Array == null) { f_Array = new ArrayCollection([event.result.RDF.item]); }

Re: [flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread Vivian Richard
You solution works like MAGIC. Thanks a lot... On Sat, Aug 15, 2009 at 3:07 AM, Wesley Achesonwesley.ache...@gmail.com wrote: I think its because it doesn't know if its an item or a collection try the following.  If its not this I can't help.   var f_Array:ArrayCollection =