flash on 2009-12-12

by hacker_yk666qry
♥0 | Line 19 | Modified 2009-12-12 17:19:39 | MIT License
play

ActionScript3 source code

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

package {
	import flash.display.Sprite;
	
	public class DrawTest1 extends Sprite {
		public function DrawTest1() {
			var s1:Sprite = new Sprite();
			s1.graphics.lineStyle(1, 0xff0000);
			s1.graphics.drawCircle(100, 100, 50);
			addChild(s1);
			
			var s2:Sprite = new Sprite();
			s2.graphics.lineStyle(1, 0x0000ff);
			s2.graphics.beginFill(0xffffff);
			s2.graphics.drawRect(0,0,50,50);
			s2.graphics.endFill();
			s2.x = 150;
			s2.y = 50;
			addChild(s2);
		}
	}
}

Forked