         if (target is GraphicElement)
             return GraphicElement(target).getBitmapData(true, 0, false);
         else if (!(target is IUIComponent))
-            throw new Error("FxAnimateShaderTransition can only operate on" + 
-                    " IUIComponent and GraphicElement instances");
+            throw new Error(resourceManager.getString("sparkEffects", "cannotOperateOn"));
         // TODO (chaase): Does this utility function belong in a more central
         // location, like UIComponent, or as part of ImageSnapshot?
         

////////////////////////////////////////////////////////////////////////////////
package mx.effects
{
import flash.display.BitmapData;
import flash.display.IBitmapDrawable;
import flash.display.Sprite;
import flash.geom.Matrix;

import mx.core.IUIComponent;
import mx.effects.effectClasses.FxAnimateShaderTransitionInstance;
import mx.graphics.graphicsClasses.GraphicElement;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;

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

[ResourceBundle("sparkEffects")]

/**
 * This effect animates a transition between two bitmaps,
