Hi Fréderic, thanks for joining :)
AMF is currently not supported, but it was discussed several times in the list. Many of us agree that AMF is currently the best communication protocol out there (I even don't understand the JSON success taking into account AMF is open source specification and was implemented in almost every language out there, but hey! world turned from Flash to HTML so I expect anything ;P). In JS there's some basic protocol ports out there, but we need an high level library that brings to FlexJS what old Flex SDK has with rpc.swc. We basically need the *RemoteObject* implementation that eases the use of AMF in JS as you posted. As you, many of us would need this communication layer to avoid change any server side code if we want support a FlexJS front end layer to our applications. Nobody is currently working on this, But Chris Dutz talked about contribute to this. Chris is contributing with building tooling, maven, site, and maybe you could talk with him in order to start looking at how to bring AMF to FlexJS. Your help would be so much appreciated. Without doubt for me is one of the key pieces that we need. Thanks! 2016-10-27 10:56 GMT+02:00 Fréderic Cox <coxfrede...@gmail.com>: > Hi, > > I have been following this list for quite a while now. > Thanks to Carlos his MDL efforts and post on Twitter I am considering to > start working with FlexJS in the coming days. > > I am reading the FAQ's and hope to get everything set-up soon but there is > one big feature I used a lot in all my projects and that is AMFPHP via the > RemoteObject class. > > Is AMFPHP technically possible with FlexJS? Our entire backend supports > AMFPHP so I would prefer not to change all of that to JSON. > > AS3 code is like this: > > var dataService:RemoteObject = new RemoteObject; > > dataService.destination = "Crm"; > > dataService.source = "Crm"; > > dataService.endpoint = EnalityData.rootURL + "amfphp/gateway.php"; > > dataService.addEventListener(ResultEvent.RESULT, > companiesDataResultHandler, false, 0, true); > > dataService.addEventListener(FaultEvent.FAULT, companiesDataFaultHandler, > false, 0, true); > > dataService.getOperation("getCompaniesInfo").arguments=[ > EnalityData.userLogin, > EnalityData.userPassword, EnalityData.userId]; > > dataService.getOperation("getCompaniesInfo").send(); > > > AMFPHP is superfast and easy to use. It would allow me to convert some, if > not all, of my applications to FlexJS. I'm a DIY programmer with 10+ year > of experience but never studied actual advanced programming studies (more > Communication & Multimedia). Been working with AS3 for over 10 years now. > Some concepts here are still over my head but I'm willing to learn it. > > So basically my questions regarding AMFPHP for FlexJS are: > > 1) Is AMFPHP currently supported for FlexJS > > 2) If not supported, is it technically possible? > > 3) If not supported but technically possible, is anyone already working on > it? > > 4) If nobody is working on it, who has the experience/tips on how to get > this working for FlexJS? > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestación del servicio o información solicitados, teniendo usted derecho de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación necesaria.