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

Hart

AS3でハートを描画する方法
あくまでも線なのでマスクとかはできませんけど
Get Adobe Flash player
by zahir 12 May 2009
// write as3 code here..

//AS3でハートを描画する方法
//あくまでも線なのでマスクとかはできませんけど

package {
	import flash.display.*;

	[SWF(width="300", height="300")]

	public class Hart extends Sprite{
		public function Hart(){
			
			var hart:Sprite = new Sprite();
			var g:Graphics = hart.graphics;
			
			g.lineStyle(138, 0xFF66CC, 1.0 , false,
				LineScaleMode.NORMAL,
				CapsStyle.ROUND,
				JointStyle.MITER);

			g.moveTo(50,50);
			g.lineTo(100,100);
			g.lineTo(150,50);
			
			hart.x = 50;
			hart.y = 50;

			addChild(hart);
			Wonderfl.capture_delay( 1 );
		}
	}
}