 		public function ToggleTextButton()
 		{
 			super();
+            COMPILE::JS
+            {
+                this.typeNames = 'toggleTextButton';
+            }
 		}
+        
+        COMPILE::JS
+        private var _selected:Boolean;
+        
+        COMPILE::JS
+        private var SELECTED:String = "selected";
         
         /**
          *  <code>true</code> if the Button is selected.

	import org.apache.flex.core.IUIBase;
	import org.apache.flex.core.ValuesManager;
	import org.apache.flex.events.IEventDispatcher;
	
    //--------------------------------------
    //  Events

         */
        public function get selected():Boolean
        {
            COMPILE::AS3
            {
                return IToggleButtonModel(model).selected;                    
            }
            COMPILE::JS
            {
                return _selected;
            }
        }
        
        /**
