1 Reply Latest reply on Nov 4, 2009 12:22 PM by babo_ya

    How do I create an instance of RemoteObject in Actionscript project?


      I have created a class as below but, it keep saying that unable to find the "RemoteObject" class can't be found("Type not found").


      Thanks for your help,





      package custom.util


      import flash.events.Event;

      import mx.rpc.remoting.mxml.*;

      import mx.rpc.remoting.RemoteObject;

      import mx.collections.ArrayCollection;

      import mx.rpc.events.ResultEvent;


      public class RemoteObj


      private var ro:RemoteObject;

              public var lastResult:ArrayCollection;


      public function RemoteObj()





      public function remoteobj():void


      ro = new RemoteObject();

      ro.destination = "ColdFusion";

      ro.source = "";

      ro.showBusyCursor = true;

      ro.endpoint = "";



      public function getName(id:String):void


      var obj:Object = {badgeId:id,serial:123};




      public function ResultHandler(Event:ResultEvent):void


      trace("Got it");