creationComplete="init()" xmlns:mx="library://ns.adobe.com/flex/mx">
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
protected function init():void
{
serv.send();
so.sayHello("wo");
// sj.sayHello("wo");
sj.test();
}
protected function button_clickHandler():void
{
currentState='Page2';
}
protected function button_clickHandler_1():void
{
currentState='Page1';
}
protected function textInput_changeHandler():void
{
currentState='Page1';
}
protected function textInput_rollOverHandler():void
{
currentState='Page1';
}
protected function serv_faultHandler(event:FaultEvent):void
{
Alert.show("调用失败了httpservice:"+event.fault.message as String,"提示");
}
protected function serv_resultHandler(event:ResultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用成功了httpservice");
}
protected function sj_faultHandler(event:FaultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用失败了remoting:"+event.fault.message as String,"提示");
}
protected function sj_resultHandler(event:ResultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用成功了remoting1");
ti2.text=event.result.toString();
}
protected function so_resultHandler(event:ResultEvent):void
{
Alert.show("调用成功了remoting");
// TODO Auto-generated method stub
ti1.text=event.result.toString();
}
protected function so_faultHandler(event:FaultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用失败了remoting");
}
protected function text_faultHandler(event:FaultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用失败了text");
}
protected function text_resultHandler(event:ResultEvent):void
{
// TODO Auto-generated method stub
Alert.show("调用成功了remoting");
text.insert(username,password,age);
}
public function submit():void
{
text.insert(username.text,password.text,age.text);
}
]]>
windows live
TM
Hotmail(0)
Messenger
Office
Photos
sign out
profile
Msn
阅读(2366) | 评论(1) | 转发(0) |