.net与Flex使用Flurorine通信发生错误
絮絮 2009-11-10 06:38:22 .net和Flex始终没有连接成功,我崩溃了,代码如下:
提示:1023:不兼容的覆盖
先说明,我从官网下载下来的,它的包里的东西提示错误,这是怎么回事?
override public function setCredentials( username:String, password:String ):void//就是它错的
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:renaun="com.renaun.rpc.*"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
public function init():void
{
}
public function conectionServerHand(evt:ResultEvent):void
{
trace(evt.result.toString());
}
]]>
</mx:Script>
<renaun:RemoteObjectAMF0
endpoint="http://127.0.0.1/WebSite2/Gateway.aspx"
id="fs"
source="FluorineExample.Services.GetSQLServer20005Data"
showBusyCursor="true">
<renaun:methods>
<renaun:method name="ServerSayHello" result="conectionServerHand(evt)"/>
</renaun:methods>
</renaun:RemoteObjectAMF0>
</mx:Application>