      */
     public function set titleIcon(value:Class):void
     {
-        if (titleBar == null)
-            return;
-    
-        titleBar.titleIcon = value;
+        _titleIcon = value;
+        titleIconChanged = true;
 
         invalidateProperties();
         invalidateSize();

            }
            
            dispatchEvent(new Event("menuChanged"));
        }

        if (titleChanged)

     */
    public function get titleIcon():Class
    {
        return _titleIcon;
    }

    /**
