The error is from corelib parsing a pubDate variable. I get the below
error when trying the below two lines of code:
var day:Date = item.pubDate; // item is an Item20
var dayStr:String = day.toDateString(); // toString is not working
either
Error: Unable to parse the string [2/5/2008 10:41:56 AM] into a date.
The internal error was: TypeError: Error #1010: A term is undefined
and has no properties.
at com.adobe.utils::DateUtil$/parseRFC822()[C:\Development
\ContractProjects\Adobe\as3corelib\src\com\adobe\utils\DateUtil.as:
460]
at com.adobe.xml.syndication::ParsingTools$/dateCheck()[C:\Documents
and Settings\mchamber\My Documents\src\flashplatform\projects
\xmlsyndication\trunk\src\actionscript3\com\adobe\xml\syndication
\ParsingTools.as:116]
at com.adobe.xml.syndication.rss::Item20/get pubDate()[C:\Documents
and Settings\mchamber\My Documents\src\flashplatform\projects
\xmlsyndication\trunk\src\actionscript3\com\adobe\xml\syndication\rss
\Item20.as:161]
at NGService/parseRSS()[C:\Documents and Settings\
guolong.li\workspace
\NGService\NGService.mxml:87]
at NGService/onDataLoad()[C:\Documents and Settings\
guolong.li
\workspace\NGService\NGService.mxml:55]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()