 import flash.utils.ByteArray;
 
 import mx.core.IUIComponent;
+import mx.core.mx_internal;
 import mx.effects.IEffectInstance;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;

import spark.effects.supportClasses.AnimateTransitionShaderInstance;
import spark.primitives.supportClasses.GraphicElement;
import spark.utils.BitmapUtil;

//--------------------------------------
//  Other metadata

            return null;

        if (target is GraphicElement)
            return GraphicElement(target).captureBitmapData(true, 0, false);
        else if (!(target is IUIComponent))
            throw new Error(resourceManager.getString("sparkEffects", "cannotOperateOn"));
        return BitmapUtil.getSnapshot(IUIComponent(target));
