In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

ColorTransform

Get Adobe Flash player
by toburau 09 Dec 2010
    Embed
/**
 * 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);
        }
    }
}