I am using an httpService to grab some xml data. Using the Cairngorm framework,
I have the results sent back to the Command Class (implementing IResponder)
from the Delegate Class. As simple as this might sound, it's frustrating me
beyond belief ... what's the simplest way to put the returned data into an
array collection? If I trace out the returned data (see code), I get an object.
However, if I attempt to put the returned data in an object, it traces out
'null'.
public function result(data:Object):void{
trace(ResultEvent( data ).result.images) // traces object
var ac:ArrayCollection = ResultEvent( data ).result.images as
ArrayCollection
trace(ac) // traces null
}
Can someone shed some light on the error of my ways?
Thanks in advance.