› get started
› enable log4net
› input typed objects
› BitmapReconstitutor
<httpHandlers> <add verb="*" path="gateway.php" type="Fuel.AmfNet.GatewayHandler, Fuel.AmfNet"/> </httpHandlers>
namespace Company.Security { public class User { private int _userId; private string _userName; public int UserId { get { return _userId; } } public string UserName { get { return _userName; } set { _userName = value; } } public User GetUser(int userId) { //implementation return foundUser; } } }
var service:Service = new Service( 'http://www.openmymind.net/gateway.php', null, 'Company.Security.User, Company');The 1st parameter is the path to the gateway, this is directly tied to the path specified in Step 2. Note that unlike Macromedia's implementation, there is no physical file "gateway.php". You can name this imaginary file anything you like in your web.config (so long as it ends with .php), and matches the name in your flash movie
var pc:PendingCall = service.GetUser(1); pc.responder = new RelayResponder( this, "onSuccess", "onFault"); function onSuccess(re:ResultEvent) { trace(re.result.UserName); }