xmlns:s=”library://ns.adobe.com/flex/spark”
xmlns:mx=”library://ns.adobe.com/flex/mx” xmlns:supportClasses=”com.esri.ags.skins.supportClasses.*” minWidth=”955″ minHeight=”600″ creationComplete=”init()”>
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
public function init():void
{
IPandPcname.getCompuName();
IPandPcname.getIp();
}
public function IPandPcname_faultHandler(event:FaultEvent):void
{
Alert.show(event.toString());
}
public function getCompuName_Handler(event:ResultEvent):void
{
Alert.show(event.result.toString());
}
public function getIp_Handler(event:ResultEvent):void
{
Alert.show(event.result.toString());
}
]]>
© 版权声明
文章版权归作者所有,未经允许请勿转载。