FLEX传递不同数组
发布时间:2020-12-15 04:04:03 所属栏目:百科 来源:网络整理
导读:[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.HelloW
[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; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |