flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com.INVALID>
Subject Re: Remote object for Flex JS
Date Wed, 23 Aug 2017 05:41:50 GMT
So, I played around with AMF today, adding SWF code for RemoteObject.  For
me, the RemoteObjectAMFTest in examples/flexjs is working against the
SampleAmfWebApp in examples/amf for both SWF and JS.  I don't think I had
to touch the JS code in amf.js.  That's better than I was expecting.  Am I
not doing something right or is there some other problem that needs

Some observations along the way:

I was able to talk to the server in SWF code just by using
NetConnection.call and passing in CommandMessages and RemotingMessages,
but the amf.js code seems to be sending an ActionMessage wrapped around
the CommandMessage and RemotingMessage.  Is that wrapping what
NetConnection does?

I'm tempted to try to refactor amf.js into several AS classes.  Is that
worth doing or are there bigger fish to fry?

The amf.js code includes a Promise implementation.  If we refactor to AS,
should we try to use promises or make the API more compatible with regular
Flex?  I'm leaning towards compatibility with regular Flex.


On 8/21/17, 11:02 AM, "Harbs" <harbs.lists@gmail.com> wrote:

>There’s probably an advantage to converting it to FlexJS. You could
>probably leverage BinaryData for some of the functionality.
>You can also create typedefs if you want.
>> On Aug 21, 2017, at 8:53 PM, PKumar <prashakumar@gmail.com> wrote:
>> Alex,
>> As per my analysis & testing, AMFJS supports following features:
>> - All dataType serialization & deserialization support including
>>Object ,
>> Vector
>> -  Connection with BlazeDS
>> - Conection with AMFPHP
>> -  Class Mapping Support using Alias Name & Class
>> -   Inbuilt support for sending AMF request  & response
>> I also checked James ward implementation but that does  not support
>> and blazeds connectivity.
>> I prepared  a demo for class mapping and blazeDs connection. If  you
>>want to 
>> check, please let me know. I will share on github.
>> one query i want  to ask , can we convert this amfJS library to  FlexJS
>> Typedef  just like createJS library?
>> Regards,
>> Prashant
>> -----
>> Regards,
>> Prashant
>> --
>> View this message in context:
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message