Revision: 8392
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 18, 2008 08:05 by nextstep
Initial Code
var xmlResult:XML = XML(event.result); trace(xmlResult.toXMLString()); //So you know how to write the xmllist expression var xlJobs:XMLList = xmlResult.job; trace(xlJobs.length()); //is this number what you expect? datagrid.dataProvider = xlJobs;
Initial URL
http://tech.groups.yahoo.com/group/flexcoders/message/113539
Initial Description
Tracy from FlexCoders advises against using lastResult. This property is intended for use in binding expressions, and you cannot depend on its value when you access it in AS code (though it usually works). Note that if you ever decide to use binding instead of directly assigning the dataProvider, do not use XMLList because it is not bindable. Wrapt that in an XMLListCollection instead.
Initial Title
Flex XMLListCollection
Initial Tags
xml
Initial Language
ActionScript