Re: [flexcoders] AMFPHP MySQL Results Object

2008-03-24 Thread Daniel Tse
Thanks Aaron! I'm still a bit unsure about referencing the individual items then. after I have collection... how do I actually access each row/column? I tried to find out the length or number of rows by going collection.length... it didn't seem to like that at all. -Daniel On Mon, Mar 24, 2008

Re: [flexcoders] AMFPHP MySQL Results Object

2008-03-24 Thread Aaron Miller
I always set the return result as Object in my handler then type it as the specific class later in the function. I'm not sure if I do this out of habit or necessity. # private function handleResult( result:Object ): void { # var collection:ArrayCollection = result as ArrayCollection; # } Also n

[flexcoders] AMFPHP MySQL Results Object

2008-03-24 Thread Daniel Tse
Hi All, I have setup AMFPHP and it returns back the recordset object from a MySQL query. I was wondering how I access that array/recordset from the flex side. e.g. I have the following: In Flex.. public function getPeople():void { myService.connect(REMOTESERVERURL);