4,327
社区成员




<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<s:RemoteObject id="srv" destination="courseService" showBusyCursor="true"/>
</fx:Declarations>
<mx:DataGrid dataProvider="{srv.getCourses.lastResult}"/>
<s:Button label="Get Data" click="srv.getCourses()"/>
</s:Application>
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="courseService">
<properties>
<source>services.Operation</source>
</properties>
</destination>
</service>