0 Replies Latest reply on Aug 8, 2012 8:14 AM by nikos101

    Interface implemtation with xmlloader instead of remoteobject

    nikos101 Level 2

      Hi there, if I want to change the implementation of getTrades to use a URL loader instead of a remote object, can I still use this interface

       

       

       

      package services

      {

          import models.Client;

          import models.Trade;

         

          import mx.rpc.AsyncToken;

       

          public interface ITradesService

          {

             

              function getTrades(userID:int):AsyncToken;

            

          }

      }

       

       

      using

       

      function getTrades{

       

      myXMLURL=new URLRequest(XML_URL);

                  myLoader=new URLLoader(myXMLURL);

       

                  myLoader.addEventListener("complete", onComplete);

      }