ColorTransform
/**
* Copyright toburau ( http://wonderfl.net/user/toburau )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/oPUj
*/
package {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.ColorTransform;
[SWF(backgroundColor="0x000000")]
public class FlashTest extends Sprite {
public function FlashTest() {
graphics.beginFill(0xffffff);
graphics.drawCircle(232,232,100);
graphics.endFill();
stage.addEventListener(MouseEvent.CLICK,onClick);
}
public function onClick(e:MouseEvent):void {
transform.colorTransform = new ColorTransform(0.5,0.5,0.5);
}
}
}