         {
             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];

    public var bitmapTo:BitmapData;

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

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function AnimateTransitionShaderInstance(target:Object)
    {
        super(target);
        // Automatically keep disappearing targets around during this effect
        autoRemoveTarget = true;
    }

    //--------------------------------------------------------------------------
    //
    //  Class variables
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     *  Storage for the resourceManager getter.
     *  This gets initialized on first access,
     *  not at static initialization time, in order to ensure
     *  that the Singleton registry has already been initialized.
     */
    private static var _resourceManager:IResourceManager;
    
    /**
     *  @private
     *  A reference to the object which manages
     *  all of the application's localized resources.
     *  This is a singleton instance which implements
     *  the IResourceManager interface.
     */
    private static function get resourceManager():IResourceManager
    {
        if (!_resourceManager)
            _resourceManager = ResourceManager.getInstance();

        return _resourceManager;
    }
    
    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    /**
     *  @copy spark.effects.AnimateTransitionShader#bitmapFrom
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
