You solution works like "MAGIC". Thanks a lot...



On Sat, Aug 15, 2009 at 3:07 AM, Wesley Acheson<wesley.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 = event.result.RDF.item as ArrayCollection;
>   if (f_Array == null) {
>    f_Array = new ArrayCollection([event.result.RDF.item]);
>   }
> myDataGrid.dataProvider = f_Array;
>
>
> On Sat, Aug 15, 2009 at 9:49 AM, hworke <kanps...@gmail.com> wrote:
>>
>>
>> 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 httpservice:
>>
>> private function userUpdateMyplate(event:ResultEvent):void
>> {
>>   var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
>>   myDataGrid.dataProvider = f_Array;
>> }
>>
>>
>>
>> ------------------------------------
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>
> 

Reply via email to