- 博客(0)
- 资源 (5)
- 收藏
- 关注
ProgressBarProgressBar
ProgressBarProgressBarProgressBdfdf地方地方arProgressBarProgressBarProgressBar
2011-10-19
flexjava交互
1. mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
[Bindable]
var result:String;
function sendRequest(){
var name=name1.text;
var password=password1.text;
ro.validateLogin(name,password);
ro.addEventListener(ResultEvent.RESULT,results);
}
function results(event:ResultEvent){
result=event.result as String;
}
]]>
</mx:Script>
<mx:RemoteObject id="ro" destination="LoginDemo" fault="Alert.show(event.fault.toString())">
</mx:RemoteObject>
<mx:Panel x="340" y="77" width="284" height="242" layout="absolute">
<mx:Label x="25" y="28" text="帐号" width="52" fontSize="17"/>
<mx:Label x="25" y="95" text="密码" width="52" fontSize="17"/>
<mx:TextInput x="74" y="28" id="name1" />
<mx:TextInput x="74" y="95" id="password1"/>
<mx:Button x="169" y="152" label="登陆" fontSize="15" click="sendRequest()"/>
</mx:Panel>
<mx:Label text="{result}">
</mx:Label>
</mx:Application>
2.
remoting-config.xml
<destination id="MoginDemo">
<properties>
<source>bean.MoginDemo </source>
<scope>application</scope>
</properties>
</destination>
3. java
package bean;
import java.util.*;
public class LoginDemo {
public String validateLogin(String name,String password){
String login="sorrry,you login fail";
if(name.equals("sa")&&password.equals("123")){
login="you login success";
}
return login;
}
}
2011-10-17
amcharts-flex-charts
flex偶就是对方立即按时到了房间里看的份简历上打击反垃圾是对方立即拉斯的房间离开的房间拉斯加对方立即按时到了房间了速度快放假是对方看了地方
2011-03-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人