I'm doing an example from Friend of Ed's Foundation Actionscript 3.0 Animation and it is not working. Sadly, Ed isn't very responsive.

Here is the class definition itself:
Code:
package
{
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	
	public class TransformColor extends Sprite
	{
		//[Embed(source="picture.jpg")]
		//public var Picture:Class;
		
		public function TransformColor()
		{
			init();
		}
		
		private function init():void
		{
			var pic:Bitmap = new Picture();
			addChild(pic);
			pic.transform.colorTransform = new ColorTransform(-1, -1, -1, 1,255, 255, 255, 0);
		}
	}
}
I coded out the Flex stuff. He says after this code, well if you are using the Flash IDE then just embed an image in your library, export it for actionscript, and call it the class "Picture" and everything will work.

It doesn't.

I'm getting:

1136: Incorrect number of arguments. Expected 2. | var pic:Picture = new Picture();

1067: Implicit coercion of a value of type Picture to an unrelated type flash.displayBig GrinisplayObject. | addChild(pic);

or

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at TransformColor/::init()
at TransformColor$iinit()


Any ideas? I just want to finish this off so I can get to the next chapter which is much more exciting.