     {
         super.initInstance(instance);
         
-        var wipeInstance:FxWipeInstance = FxWipeInstance(instance);
+        var wipeInstance:WipeInstance = WipeInstance(instance);
         wipeInstance.direction = direction;
     }
     

 * a different Wipe behavior is desired, a different shader may be
 * supplied, as long as it adheres to the following constraints: 
 * obey the constraints specified for the <code>shaderCode</code>
 * property of FxAnimateShaderTransition, and supply three additional
 * parameters. The extra parameters required by the FxWipe shader 
 * are an int <code>direction</code> parameter, 
 * whose values mean the same as the related String properties
 * in the FxWipe class, and floating point parameters
 * <code>imageWidth</code> and <code>imageHeight</code>. All of these
 * parameters will be set on the shader when the effect starts playing,
 * so the parameters need to exist and do something appropriate in
 * order for the effect to function correctly.</p>
 * 
 * @see mx.effects.FxAnimateShaderTransition#shaderCode
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
public class FxWipe extends FxAnimateShaderTransition
{
    [Embed(source="FxWipe.pbj", mimeType="application/octet-stream")]
    private static var WipeShaderClass:Class;
    private static var wipeShaderCode:ByteArray = new WipeShaderClass();
    

     */
    public var direction:String = WipeDirection.RIGHT;
    
    public function Wipe(target:Object=null)
    {
        super(target);
        instanceClass = WipeInstance;
        shaderCode = wipeShaderCode;
    }

