Flex RemoteObject

Posted on 2009-02-16
Last Modified: 2012-06-21
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"



		result="displayResponse(event.result as Array); event.token.resultHandler(event)"


private function doSomething():void


      var t:AsyncToken = ro.getInfo({ACTION:"Info",

		 			Name: txtName.text,

		 			LastName: txtLastName.text});

      t.resultHandler = getInfoResult;


Open in new window

Question by:xtremereality
    1 Comment
    LVL 19

    Accepted Solution

    This should help you out.

    var ro:RemoteObject = new RemoteObject;
    ro.destination = "myDestination";
    ro. endpoint="htt://ww..."


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now