FLEX傳遞不同數組

  		[Bindable] public var ary1:Array=[];


             
            
                private function init():void{
                    	ary1.push('黃曉華1');
                    	ary1.push('黃曉華2');
                    	ary1.push('黃曉華3');
 
               	 remoteObject.tt(ary1)

    }

<mx:RemoteObject id ="remoteObject"  destination ="helloWorld" source = "news.HelloWorld"  result ="resultHandler(event)"   fault="faultHandler(event)" /

	public String tt(ArrayList b) {
		//String[] b={"a","b","c"};
		//int a=Array.getLength(b);
	   //   b[0].toString();
		int i;
		String aa="";
		for(i=0;i< b.size(); i++){
		
			 aa=aa+b.get(i).toString();
		}

		System.err.println("7 d77777888");   
		
	


		return  aa;
		
	}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章