flex donet conn

package com.wks.util
{
 import com.wks.common;
 
 import flash.net.NetConnection;
 
 import mx.controls.Alert;
 
 public class DonetRemote extends NetConnection
 {
  
  private static var DRO:DonetRemote;
  
  public static function getInstance():DonetRemote
  {
   if(!DRO)
   {
    try{
     DRO = new DonetRemote();
     DRO.connect(common.RemotingAddress);
    }catch(e:Error)
    {
     Alert.show(common.ConnError,common.SystemInfo);
    }
   }
   
   return DRO;
   
  }
 }
}

你可能感兴趣的:(Flex,职场,休闲)