Well, it depends on your API goals.  If you want to completely replicate
the RemoteObject API, then you might want to copy all the RemoteObject
related classes from the flex-sdk's RPC project, then add COMPILE::JS
conditional compilation code to make calls to amfjs.js where it is needed.

If you just want the simplest AMF API, maybe copy the FlexJS HTTPService,
call it AMFService and have the send() method call amfjs.js inside a
COMPILE::JS conditional and NetConnection inside COMPILE::SWF.

If you want to port amfjs.js to ActionScript, you can do that as well,
then there isn't a separate amfjs.js file to load at compile-time or
runtime.  If you want to use amfjs.js as an external file, you can get it
injected into the HTML by using <inject_html> like we did in the CreateJS
project.

HTH,
-Alex  

On 10/26/16, 11:14 AM, "PKumar" <[email protected]> wrote:

>i have managed to create  the amfjs.swc, but i need to use this swc and
>create the action script code. I created a library project and keeping the
>amfjs.swc inside the libs folder. i created an action script class named
>AMFJS.as but i do not know how i will write the amf specific code. Below
>are
>the lines in js side,
>
> 
>
>
>
>
>
>-----
>Regards,
>Prashant
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Support-in-BlazeDS-c
>ommunication-tp11562p13951.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to