package tdh.adsys
{
   import flash.utils.Dictionary;
   import flash.net.SharedObject;
   
   public class MacInfo extends Object
   {
      
      public function MacInfo()
      {
         super();
      }
      
      private static const mem:Dictionary = new Dictionary();
      
      public static function _get(projId:String) : MacInfo
      {
         var info:MacInfo = mem[projId] = mem[projId] || new MacInfo();
         if(info.so == null)
         {
            info.so = SharedObject.getLocal(projId);
         }
         return info;
      }
      
      private var so:SharedObject;
      
      public function get id() : String
      {
         return this.so.data.macId;
      }
      
      public function set id(value:String) : void
      {
         this.so.setProperty("macId",value);
      }
   }
}
