         /**
          * @private
          */
-        public function set userAgent( custom:UserAgent ):void
+        public function set userAgent( custom:String ):void
         {
             _userAgent = custom;
         }
-                
+        
     }
 }
            return color;
        }
        
        /**
         * Defines a custom user agent.
         * <p>For case where the user would want to define its own application name and version 
         * it is possible to change appName and appVersion which are in sync with 
         * applicationProduct and applicationVersion properties.</p>
         */
        public function get userAgent():UserAgent
        {
            /* note:
               if we change appName then we update applicationProduct
               if we change appVersion then we update applicationVersion
               but the inverse is not true.
            */
            if( !_userAgent )
            {
                 _userAgent = new UserAgent(this, appName, appVersion.toString(4));
            }
            
            return _userAgent;

         */
        public function isAIR():Boolean
        {
            //return (playerType == "Desktop") && (Security.sandboxType.toString() == "application");
            return Security.sandboxType == "application";
        }
        
        /**
         * Indicates if the SWF is embeded in an HTML page.
