         if (cachedActionGroup)
         {
             childIndex = actionBarSkin.getChildIndex(actionBar.actionGroup) - 1;
-            actionBarSkin.addChildAt(cachedActionGroup, childIndex);
+            addComponentToContainerSkinAt(cachedActionGroup, actionBarSkin, childIndex);
             
             fadeOutTargets.push(cachedActionGroup);
             

    
    /**
     * @private
     * 
     * Creates the animations used to animate the content of the
     * action bar.  This method is only called if the slide transition
     * isn't doing a full action bar transition.

////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2010 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package spark.effects
{
import flash.display.BitmapData;

import mx.core.IVisualElementContainer;
import mx.core.UIComponent;
