 import mx.layout.LayoutItemFactory;
 import mx.managers.LayoutManager;
 import mx.styles.IStyleClient;
+import mx.core.IVisualElementContainer;
 
 /**
  * The FxAnimateInstance class implements the instance class for the

                var parentEnd:* = propertyChanges.end["parent"];;
                if (parentStart && !parentEnd)
                {
                    if (parentStart is Group)
                        parentStart.removeItem(target);
                    else
                        parentStart.removeChild(target);
                }

                var parentEnd:* = propertyChanges.end["parent"];;
                if (parentStart && !parentEnd)
                {
                    if (parentStart is IVisualElementContainer)
                        IVisualElementContainer(parentStart).addElement(target);
                    else
                        parentStart.addChild(target);
                    needsRemoval = true;
