 import spark.effects.supportClasses.AnimateTransitionShaderInstance;
 import spark.primitives.supportClasses.GraphicElement;
 import spark.utils.BitmapUtil;
+
+use namespace mx_internal;
 
 //--------------------------------------
 //  Other metadata

import flash.utils.ByteArray;

import mx.core.IUIComponent;
import mx.effects.IEffectInstance;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;

            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));
