• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 711
  • Last Modified:

Flex RemoteObject

Hi All,
How can I convert the attached tag into a proper actionscript code?
Basically I want to remove the <mx:RemoteObject> and have a proper action script

Thanks in advance
<mx:RemoteObject id="ro"
		endpoint="htt://ww..."
		destination="myDestination"
		result="displayResponse(event.result as Array); event.token.resultHandler(event)"
		fault="Alert.show(ObjectUtil.toString(event.fault))"/>
 
private function doSomething():void
{
      var t:AsyncToken = ro.getInfo({ACTION:"Info",
		 			Name: txtName.text,
		 			LastName: txtLastName.text});
 
      t.resultHandler = getInfoResult;
}

Open in new window

0
xtremereality
Asked:
xtremereality
1 Solution
 
Jones911Commented:
This should help you out.

var ro:RemoteObject = new RemoteObject;
ro.destination = "myDestination";
ro. endpoint="htt://ww..."
ro.displayResponse.addEventListener("result",displayResponse);
ro.addEventListener("fault",faultHandler);

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now