Right now you can’t really create a
RemoteObject in AS, you need to use MXML. Most people are solving this problem
by using a ServiceLocator pattern, it’s been implemented in Cairngormand
is also described in the Developing Rich Clients book (or if you don’t
have it the Chapter 20 that’s posted on TheServerSide).
Matt
From: greenfishinwater
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10,2005
3:47 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] How to
create a remote object in Action Script
I am planning to create a reusable componentin
ActionScript,
extending the tree control. My tree control uses a
remote object to
fetch all node data from a database.
Currently I have a remote object defined in an
mxml file as:
<mx:RemoteObject id="customerDataRO"
named="CustomerTree"
showBusyCursor="true"
fault="alert(event.fault.faultstring, 'Error!')" >
<mx:method
name="getChildren"
result="handleCustomerTreeRS(event)"
concurrency="single"/>
</mx:RemoteObject>
How do I create this remote object in Action
Script?
Andrew
|