2 Replies Latest reply on Jul 3, 2009 2:04 PM by michael nieuwenhuizen

    HTTPService.result?

    michael nieuwenhuizen

      I've got a HTTPService object.  In mxml I can write it like:

       

               <mx:HTTPService id="gateway" url="someURL" method="POST" resultFormat="e4x" result="gatewayHandler(event)" />

       

      If I try to create this in ActionScript, how do I add the result attibute?  The other ones are easy:

       

           var gateway:HTTPService = new HTTPService();

           gateway.url = "someURL";

       

      etc., but:

       

           gateway.result = gatewayHandler(event);

       

      gives an error message.  How do I add this handler in ActionScript?