You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Dev LFM <de...@gmail.com> on 2016/12/19 12:25:05 UTC

RPC on AS3 project

Hi,

I'm really struggling on this. I started a new ActionScript project on FB
using AIR SDK 23, then I wanted to use RemoteObject to re-use the AMFPHP
server code we already have developed.

I tried many ways, adding rpc.swc+framework.swc / referencing en_US bundles
folder / registerClass of all dependencies but no luck.

Can someone help me setup this?


It would be nice to add this topic on apache help files.


Kind regards!



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/RPC-on-AS3-project-tp14349.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: RPC on AS3 project

Posted by Clint M <cm...@gmail.com>.
Hmh… didn't know this was possible… what is the resulting size of the swf?
(i.e. how much of the Flex framework did it suck in?)

Should dump and post the link report with the compiler option
-link-report=linkReport.xml

Maybe just post the flex related stuff if you don't want us to see your
class names, sizes, etc.

On Mon, Dec 19, 2016 at 12:16 PM, Dev LFM <de...@gmail.com> wrote:

> I got it working!!
>
> Steps:
> - reference this libs:
>   - FLEX_SDK/frameworks/libs/framework.swc;
>   - FLEX_SDK/frameworks/libs/rpc.swc;
>   - FLEX_SDK/frameworks/locale/en_US/framework_rb.swc
>   - FLEX_SDK/frameworks/locale/en_US/rpc_rb.swc
>
> - register class's:
>     registerClassAlias("flex.messaging.messages.RemotingMessage",
> RemotingMessage);
>
> registerClassAlias("flex.messaging.messages.CommandMessage",
> CommandMessage);
>     registerClassAlias("flex.messaging.messages.AcknowledgeMessage",
> AcknowledgeMessage);
>     registerClassAlias("flex.messaging.messages.ErrorMessage",
> ErrorMessage);
>
> Hope this helps someone. Carlos Rovira here you have it ;) I'll post the
> solution on starling forum too.
>
> p.s - thank you to Ghazi TRIKI that kindly tried to help me found the
> problem.
>
>
> Kind regards to all
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/RPC-on-AS3-project-tp14349p14356.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: RPC on AS3 project

Posted by Dev LFM <de...@gmail.com>.
I got it working!!

Steps:
- reference this libs: 
  - FLEX_SDK/frameworks/libs/framework.swc;
  - FLEX_SDK/frameworks/libs/rpc.swc;
  - FLEX_SDK/frameworks/locale/en_US/framework_rb.swc
  - FLEX_SDK/frameworks/locale/en_US/rpc_rb.swc

- register class's:
    registerClassAlias("flex.messaging.messages.RemotingMessage",
RemotingMessage);
   
registerClassAlias("flex.messaging.messages.CommandMessage",CommandMessage);
    registerClassAlias("flex.messaging.messages.AcknowledgeMessage",
AcknowledgeMessage);
    registerClassAlias("flex.messaging.messages.ErrorMessage",
ErrorMessage);

Hope this helps someone. Carlos Rovira here you have it ;) I'll post the
solution on starling forum too.

p.s - thank you to Ghazi TRIKI that kindly tried to help me found the
problem.


Kind regards to all



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/RPC-on-AS3-project-tp14349p14356.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.