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

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

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
