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
Post a Comment