Finding examples with AS2 to do a Remote Call (Fluorine or WebORB) is easy.
However, finding an example for AS3 is very, very hard.
Here’s how you do it (thanks to Ward De Langhe):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
private function getGalleryData():void{
 
registerClassAlias("logics.BLL.CollectionEntity",GalleryVO);
registerClassAlias("logics.BLL.GridRowEntity",GalleryRowVO);
registerClassAlias("logics.BLL.PictureEntity",GalleryImageVO);
 
galleryService=new NetConnection();
galleryService.objectEncoding=ObjectEncoding.AMF0;
galleryService.connect(SiteModel.GATEWAY_URL);
//SiteModel.GATEWAY_URL is url path to your gateway
responder=new Responder(galleryResult, galleryFault);
galleryService.call("remoting.service.CollectionService.GetCollection",responder);
}
 
private function galleryResult(result:Object):void{
galleryVO=result as GalleryVO;
}
 
private function galleryFault(fault:Object):void{
}

We haven’t been able to figure aout why ObjectEncoding.AMF3 doesn’t work.
Well, it works, but in the result the objects are not deserialized, so you just get Objects…

pixel .NET Invocation guide for Flash Remoting clients AS3
No TweetBacks yet. (Be the first to Tweet this post)