I was wondering what's the difference between following two snippets...
also there is this one more snippet:
var states:XMLListCollection; states = new XMLListCollection(xml.data.items as XMLList);
Thanks and Regards
"as" says "if it is already an ArrayCollection, then I'll assign it to dp, otherwise I'll assign null"
The other says, "make a new ArrayCollection and pass xml.data.items in as the Array it will manage (which it probably isn't).
The last one says "make an XMLListCollection with xml.data.items as the XMLList it will manage (which is probably what you want)
Flex SDK Developer
Adobe Systems Inc.