                 // TODO : workaround for current situation of mis-match between
                 // Group having 'item's and Flex3 components having 'parent's
                 if (target.parent is IVisualElementContainer)
-                    IVisualElementContainer(target.parent).removeElement(target);
+                    IVisualElementContainer(target.parent).removeElement(target as IVisualElement);
                 else
                     target.parent.removeChild(target);
             }

		if (property == "index")
			return container ? 
                ((container is IVisualElementContainer) ? 
                    IVisualElementContainer(container).getElementIndex(target) : 
                    container.getChildIndex(target)) 
                : 0;
		


import flash.display.DisplayObjectContainer;

import mx.core.IVisualElement;
import mx.core.IVisualElementContainer;
import mx.core.mx_internal;
import mx.effects.effectClasses.AddActionInstance;
