flex通过java后台获取ip和pcname示例代码

随心笔谈1年前发布 编辑
161 0

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());

}

]]>

© 版权声明

相关文章