I have a .as class extending arraycollection.
In the constructor I set up a webservice and listner to capture the
result in resultHandler
Ideally in resultHandler I'd do something like
this=event.result;
but it doesn't work, so I am looping over the event.result, adding it
to the array
I dont know the format that php uses for sending data, but in java when I
send data, the result also has a field called source which is already in the
form of an ArrayCollection. This I suspect depends on the data structure
used to send the data and how php does it.
Regards,
Hank
On 1/13/07,
I can't seem too create an ArrayCollection from and array. I have
data being returned (type object) which I can successfully type into
an array, but when I try to then change it to an ArrayCollection it
fails with the follow error. What am I doing wrong?
public function
I solved my own problem! I had forgotten to include the 'new'
keyword...it's getting late in NYC!
code should read:
public function result(data:Object):void
{
var myList:ArrayCollection = new ArrayCollection(data as Array);
}
- Kevin
On Jan 13, 2007, at 7:15 PM, Kevin
4 matches
Mail list logo