Skip navigation
Currently Being Moderated

Interface implemtation with xmlloader instead of remoteobject

Aug 8, 2012 8:14 AM

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);

}

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points