ColorMatrix test

by ifree
♥0 | Line 20 | Modified 2013-12-02 16:50:26 | MIT License
play

ActionScript3 source code

/**
 * Copyright ifree ( http://wonderfl.net/user/ifree )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/nT8o
 */

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var item:Item=new Item();
            addChild(item);
        }
    }
}
import flash.display.Graphics;
import flash.display.Sprite;

class Item extends Sprite
{
     public function Item()
     {
        this.graphics.beginFill(0xff0000);
        this.graphics.drawRect(0,0,300,300);
        this.graphics.endFill();
     }   
}