Does anyone have any working example in plain Actionscript 3 ?
As I try numerous attempts but cant get web2py to provide amf gateway.

On 21 Lut, 00:23, Marek Mollin <rog...@gmail.com> wrote:
> Also does not work with:http://pastebin.com/Ghn2yNkV
>
> I hope anyone can help me...
>
> On 20 Lut, 23:01, Marek Mollin <rog...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hey,
> > I have a problem. I am trying to work with clean flash or as3 if you
> > will.
> > The issue I am bumping into is null asynctoken.result.
>
> > ** AS3 code:
>
> > import mx.rpc.remoting.RemoteObject;
> > import mx.rpc.events.FaultEvent;
> > import mx.rpc.events.ResultEvent;
> > import mx.utils.RpcClassAliasInitializer;
> > import mx.rpc.AsyncToken;
>
> > RpcClassAliasInitializer.registerClassAliases();
>
> > var remote:RemoteObject = new RemoteObject("mydomain");
> > remote.destination = "mydomain";
> > remote.endpoint = "http://127.0.0.1:8000/amf/default/call/amfrpc3";;
>
> > var a:AsyncToken = remote.addNumbers(12,3);
> > trace(a.message);
> > trace(a.result);
>
> > stop();
>
> > ** default.py controller:
>
> > def user(): return dict(form=auth())
> > def download(): return response.download(request,db)
> > def call(): return service()
> > ### end requires
> > def index():
> >     return dict()
>
> > @service.amfrpc3('mydomain')
> > def addNumbers(val1, val2):
> >     return val1 + val2
>
> > def error():
> >     return dict()
>
> > **
> > The whole thing returns null. Any ideas?
> > I am trying out the amfchannels...
>
> > Help would be incredible! ;]
>
> > Regards,
> > Marek

Reply via email to