      */
     public function set depth(value:Number):void
     {
-        if(value == depth)
+        if (value == depth)
             return;
 
         allocateLayoutFeatures();
         layoutFeatures.depth = value;  
-        if(_parent != null && _parent is UIComponent)
-            (_parent as UIComponent).invalidateLayering();
+        if (_parent is UIComponent)
+            UIComponent(_parent).invalidateLayering();
         invalidateProperties();
     }
 
     //----------------------------------
     //  x
     //----------------------------------  
+
     [Bindable("propertyChange")]
     [Inspectable(category="General")]
     

        if (oldValue == value)
            return;

        if(layoutFeatures != null)
            layoutFeatures.layoutY = value;
        else
            _y = value;

     */
    public function set postLayoutTransformOffsets(value:TransformOffsets):void
    {
        if (value != null)
            allocateLayoutFeatures();
        
        if (layoutFeatures.postLayoutTransformOffsets != null)
            layoutFeatures.postLayoutTransformOffsets.removeEventListener(Event.CHANGE,transformOffsetsChangedHandler);
        layoutFeatures.postLayoutTransformOffsets = value;
        if (layoutFeatures.postLayoutTransformOffsets != null)
            layoutFeatures.postLayoutTransformOffsets.addEventListener(Event.CHANGE,transformOffsetsChangedHandler);
    }

