     }
     
 
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-		var doRemove:Boolean = true;
-		
-		// Dispatch an effectStart event from the target.
-		super.play();	
-		
-		if (propertyChanges)
-		{
-			doRemove = (getContainer(propertyChanges.start) != null &&
-						getContainer(propertyChanges.end) == null)
-		}
-		
-		if (!mx_internal::playReversed)
-		{
-			// Set the style property
-			if (doRemove && target && getContainer(target) != null)
-				removeChild(getContainer(target), target);
-		}
-		else if (_startParent && !isNaN(_startIndex))
-		{
-			addChildAt(_startParent, target, _startIndex);
-		}
-		
-		// We're done...
-		finishRepeat();
-	}
-	
-	/** 
-	 *  @private
-	 */
-	override protected function saveStartValue():*
-	{
-		if (target && getContainer(target) != null)
-		{
-			_startIndex =
-				getChildIndex(getContainer(target), target);
-			_startParent = getContainer(target);
-		}
-	}
+    /**
+     *  @private
+     */
+    override public function play():void
+    {
+        var doRemove:Boolean = true;
+        
+        // Dispatch an effectStart event from the target.
+        super.play();   
+        
+        if (propertyChanges)
+        {
+            doRemove = (getContainer(propertyChanges.start) != null &&
+                        getContainer(propertyChanges.end) == null)
+        }
+        
+        if (!mx_internal::playReversed)
+        {
+            // Set the style property
+            if (doRemove && target && getContainer(target) != null)
+                removeChild(getContainer(target), target);
+        }
+        else if (_startParent && !isNaN(_startIndex))
+        {
+            addChildAt(_startParent, target, _startIndex);
+        }
+        
+        // We're done...
+        finishRepeat();
+    }
+    
+    /** 
+     *  @private
+     */
+    override protected function saveStartValue():*
+    {
+        if (target && getContainer(target) != null)
+        {
+            _startIndex =
+                getChildIndex(getContainer(target), target);
+            _startParent = getContainer(target);
+        }
+    }
 }
 
 }

{
    include "../../core/Version.as";

	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
	//--------------------------------------------------------------------------

	/**
	 *  Constructor.
	 *
	 *  @param target The Object to animate with this effect.
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 10
	 *  @playerversion AIR 1.5
	 *  @productversion Flex 4
	 */
	public function RemoveActionInstance(target:Object)
	{
		super(target);
    }
	
	//--------------------------------------------------------------------------
	//
	//  Variables
	//
	//--------------------------------------------------------------------------

	/**
	 *  @private
	 */
	private var _startIndex:Number;

	/**
	 *  @private
	 */
	private var _startParent:*;
	
	//--------------------------------------------------------------------------
	//
	//  Overridden methods
	//
	//--------------------------------------------------------------------------

	/**
	 *  @private
	 */
	override public function initEffect(event:Event):void
	{
		super.initEffect(event);
	}
	
    private function getContainer(child:*):*
    {
       return child.parent;

import mx.core.IVisualElementContainer;

/**
 *  The RemoveActionInstance class implements the instance class
 *  for the RemoveAction effect.
 *  Flex creates an instance of this class when it plays a RemoveAction
 *  effect; you do not create one yourself.
 *
 *  @see spark.effects.RemoveAction
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10
