This sample is the pizza service example from the AMFPHP open-source Flash Remoting gateway ported to .NET.
The original sample flash animation uses the amfphp package to create an interface to allow a user to order and manage pizzas.
To run this sample you will need:
1. The flash animation is part of the ARP package, the Open Source Pattern-Based Rich Internet Application (RIA) Framework for the Flash Platform.
2. The information is stored in a MySql database with the same table structure as the one used in the original AMFPHP sample.
You will need a MySql database and the MySql .NET Connector
3. Change in arpPizzaServiceClient.fla the ServiceLocator.as with the correct gateway url (for example: var gatewayURL:String = "http://localhost/FluorinePizzaService/Gateway.aspx");
4. Set class mapping for OrderVO class: in OrderVO.as in the constructor place Object.registerClass("com.ariaware.pizza.vo.OrderVO", OrderVO);
Generally you may need to place Object.registerClass on the first frame of the flash movie.
5. Update OrderPizzaCommand.as to send OrderVO objects to the server-side: var pendingCall:PendingCall = pizzaService.order( orderVO );
Pizza service download