package
{
import flash.display.Bitmap;
import flash.display.Sprite;
import flash.geom.ColorTransform;
public class Color extends Sprite
{
public var Picture:Class;
public function Color()
{
transformColor();
}
private function transformColor():void
{
var pic:Bitmap = new Picture();
addChild(pic);
pic.transform.colorTransform = new ColorTransform(-1, -1, -1, 1,
255, 255, 255, 0);
}
}
}
Using this as the document class for a separate fla file, i’m getting this error when the movie is exported:
**TypeError: Error #1007: Instantiation attempted on a non-constructor.
**why is this?