compile error!!

"zi doing" <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
i use the mtasc1.0.9 compile the AS file but have a error message:

"\mtasc-1.09/std/mx/remoting/NetServiceProxy.as:60: characters 8-14 : type 
error Unknown variable client"

why?

AS Code:

import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.utils.Iterator;
import mx.remoting.RecordSet;

class com.openamfdemo.ServiceImpl{
	
	private var service:Service;
	
	public function Service(){
		var myURL:String = "http://localhost:8080/FlashProj/gateway";
		var myServicePath:String = "test.CartDAO";
		service = new Service(myURL,null,myServicePath);
		init();
	}
	
	private function init():Void{
		var pc:PendingCall = service.loadItems();
		pc.responder = new RelayResponder(this, 
"loadItems_Result","loadItems_Fault");
	}
	
	public function loadItems_Result(myResult:ResultEvent):RecordSet{
	   var recordSet:RecordSet= RecordSet(myResult.result);	
	   return recordSet;
	}
	
	public static function main(){
		var serviceImpl:ServiceImpl = new ServiceImpl();
	}
}

_________________________________________________________________
璐逛杞 MSN Explorer:   http://explorer.msn.com/lccn  



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.