         {
             target.visible = true;
         }
-        shader = new Shader(shaderCode);
+        shader = new Shader(shaderByteCode);
         if (shader.data)
         {
             shader.data.from.input = bitmapFrom;
             shader.data.to.input = bitmapTo;
             
-            motionPaths = [
-                new SimpleMotionPath("progress", 0, 1, duration)
-            ];
+            motionPaths = new <MotionPath>[
+                new SimpleMotionPath("progress", 0, 1, duration)];
+
             // auto-set width/height if exposed in shader
             if ("width" in shader.data)
                 shader.data.width.value = [bitmapFrom.width];


import mx.containers.Panel;
import mx.core.Application;
import mx.core.UIComponent;

import spark.effects.AnimateShaderTransition;
import spark.effects.SimpleMotionPath;
import spark.effects.animation.Animation;
    
/**
 *  The AnimateShaderTransitionInstance class implements the instance class for the
 *  AnimateShaderTransition effect. Flex creates an instance of this class when
 *  it plays a AnimateShaderTransition effect; you do not create one yourself.
 *
 *  @see spark.effects.AnimateShaderTransition
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
public class AnimateShaderTransitionInstance extends AnimateInstance
{
    include "../../core/Version.as";


    public var bitmapTo:BitmapData;

    /**
     *  @copy spark.effects.AnimateTransitionShader#shaderByteCode
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public var shaderByteCode:ByteArray;
    
    /**
     *  @copy spark.effects.AnimateTransitionShader#shaderProperties
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
