[osflash] Decode an array/object on the server side

Glen Pike postmaster at glenpike.co.uk
Sun Nov 30 13:25:36 PST 2008


Hi,

    Have you set up the gateway and are you making remote method calls 
via this?

    From what you have written, it seems that you are pointing Flex at a 
PHP page and circumventing the gateway - for AMF remoting, you have to 
set up an RPC endpoint on the server - this is the URL that Flex's 
remoting bit talks to and this handles all the AMF (de)-serialization.
   
    I am not sure about this for SabreAMF, but the principles are the 
same for the Flex end and Sephiroth has a nice tutorial for AMFPHP:

    http://sephiroth.it/tutorials/flashPHP/flex_remoteobject/ 

    I am guessing that SabreAMF probably has a similar setup to this - 
you install it on the hosting, configure the gateway, look at the 
service browser and write your own services - add them to the right 
folder, test them in the service browser.  Then you point your Flex code 
at them...

    HTH

    Glen

Adir Iakya wrote:
> Hey All,
>
> Sorry about the noob question, but i'm having hard time sending an 
> array/object from FLEX3 to the server side (Its acctually getting to 
> the right function at the PHP, but i cant decode the array)
>
> I didn't find any clear documentation regarding this, so can someone 
> please show me an example of how to send an array or object to the 
> SabreAMF and decode it?
>
> Thanks,
>
> Adir.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/osflash_osflash.org/attachments/20081130/b2922511/attachment.html>


More information about the osflash mailing list