AS3: doesn't read Atom

Posted by Vinzcent on Stack Overflow See other posts from Stack Overflow or by Vinzcent
Published on 2010-05-10T14:38:31Z Indexed on 2010/05/10 16:04 UTC
Read the original article Hit count: 451

Filed under:
|
|
|

Hey,

I want to read an Atom in Flex. I can see in the debugger that he can read the Atom and that there are entries, I can see each value. So far, so good.

But when I want to assign a value from the atom to a variable, he never gives any text. It's always this: "".

My code:

ch.Name = xml.title;
ch.Desc = xml.subtitle;
ch.Updated = xml.updated;

for each(var entry:XML in xml.entry)
{                                           var fee:Feed = new Feed();
fee.Name = entry.title;
fee.Url = entry.link.@href;
fee.Desc = entry.summary;
fee.Updated = entry.updated;
fee.Published = entry.published;

ch.Children.addItem(fee);   
}

For example this is the value ch.Name gets

ch.Name = "";

But that's strange, because I can see in the debugger that it schould be "Tweakers.net".

Thanks a lot, Vincent

Sorry for my bad English.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3