flex调用webservice中的自定义类的方法(flex)硬核推荐

随心笔谈1年前 (2023)发布 admin
112 0

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/mx” minWidth=”955″ minHeight=”600″ creationComplete=”application1_creationCompleteHandler(event)”>

import mx.collections.ArrayCollection;

import mx.controls.Alert;

import mx.events.FlexEvent;

import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

public var arr:ArrayCollection=new ArrayCollection();

public var aaa:String=new String();

protected function webservice1_faultHandler(event:FaultEvent):void

{

Alert.show(event.fault.toString());

}

protected function getLinkDTByImgNameHandler(event:ResultEvent):void

{

// aaa=this.myweb.getLinkDTByImgName.lastResult.curIndex;

// arr=this.myweb.getLinkDTByImgName.lastResult.idxList.Tables.Table.Rows;

aaa=event.result.curIndex;

arr=event.result.idxList.Tables.Table.Rows;

Alert.show(aaa+” “+arr.length.toString());

}

protected function application1_creationCompleteHandler(event:FlexEvent):void

{

myweb.getLinkDTByImgName(“PanView”,”20131019072740-0000150″);

}

]]>

© 版权声明

相关文章