Interface implemtation with xmlloader instead of remoteobject


hi there, if want change implementation of gettrades use url loader instead of remote object, can still use 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 discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support