Chinaunix首页 | 论坛 | 博客
  • 博客访问: 676751
  • 博文数量: 118
  • 博客积分: 2933
  • 博客等级: 少校
  • 技术积分: 1779
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-27 10:16
文章存档

2013年(35)

2012年(27)

2011年(23)

2010年(33)

分类:

2011-01-03 20:20:43


      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
  

  
  
  
  
 

 
 
 
 
 
 
 
 
 
 
 
  
   
    
     
    

    
     
    

    
     
    

   

  

  
   
    
     
    

    
     
    

    
     
    

    
     
    

    
   

  

 


阅读(2335) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-01-05 11:02:03

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com