flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "irwan.husein" <irwan.hus...@gmail.com>
Subject Flex AMFPHP 2.2.1
Date Mon, 27 Oct 2014 06:56:45 GMT
Hi All,
i'm flex + php developer since flex 4.6
today i'm start migrating old amfphp server (1.9) to amfphp 2.2.1 + flex
4.13

unfortunately, i've found some problems
in amfphp 1.9, i can do remote call like this 

*Flex Client :*
public var gateway:NetConnection;

var PHPParam:Object = new Object;
PHPParam.Parameter00 = 'param1';
PHPParam.Parameter01 = 'param2';
PHPParam.Parameter02 = 'param3';

gateway.call("someservice.somefunction", new Responder(resultData,
null),PHPParam);

*AMFPHP Services*

function somefunction($PHPParam)
{
$Param1 = $PHPParam['Parameter00'];
$Param2 = $PHPParam['Parameter01'];
$Param3 = $PHPParam['Parameter02'];

//do something
return "something";
}

but, in AMFPHP 2.2.1, i can't do it anymore, i can't sent object to php
services, only simple parameter.
in their website, they suggest using JSON statement, but theres no example

if anyone has ever experienced ?
or we just go with ValueObject approach?

regards,
Irwan



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message