RemoteObject

Avatar

Avatar
Validate 1
Level 1
vscmaster
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
vscmaster
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
vscmaster
Level 1

16-12-2008

Hello!



We need cell remote method, for example:
remoteObject.getAllGoods();

How I can write structure below with ActionScript?



<mx:RemoteObject id="ro" destination="ordering" >

<mx:method name="getAllGoods"
result="resultHandler(event)"
fault="findAllFaultHandler(event)"/>

</mx:RemoteObject>

Replies

Avatar

Avatar
Level 1
wiser4me97
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
wiser4me97
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
wiser4me97
Level 1

18-12-2008

you'll have this in AS....



import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

import mx.rpc.remoting.RemoteObject;



var ro:RemoteObject = new RemoteObject();

ro.destination = "ordering";

ro.addEventListener(FaultEvent.FAULT,findAllFaultHandler);

ro.addEventListener(ResultEvent.RESULT, resultHandler);

ro.getAllGoods();