<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="doLogin()" viewSourceURL="amfphp1_9/index.html">
<mx:RemoteObject
id="roTestService"
destination="AMFPHP1_9"
source="MyTestService"
result="Alert.show( event.result + '', 'Result' )"
fault="Alert.show( event.fault.faultString , 'Error' )">
<mx:method name="testMethod" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function doLogin():void
{
roTestService.testMethod( "test", "test" );
}
]]>
</mx:Script>
<mx:Button label="Create Fault" click="roTestService.noMethod()" />
</mx:Application>