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

forked from: forked from: forked from: flash on 2010-3-3

Get Adobe Flash player
by parasol 05 Mar 2010
    Embed
/**
 * Copyright parasol ( http://wonderfl.net/user/parasol )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/uhGr
 */

package
{
	import flash.display.Sprite;
	import flash.display.Shape;
	import flash.display.LineScaleMode;
	import flash.display.CapsStyle;

	[SWF(backgroundColor="0xeeffee", width="650", height="200", frameRate="20")]

	public class curveTo_e extends Sprite
	{
		public function curveTo_e()
		{
			init();
		}
		
		private function init() :void
		{
			var line1 : Shape = new Shape();
			line1.graphics.lineStyle(20, 0x00ff00, 1, true, LineScaleMode.NORMAL, CapsStyle.NONE);  
			line1.graphics.moveTo(50, 100);
			line1.graphics.curveTo(125, 50, 200, 100);
			addChild(line1);

			var line2 : Shape = new Shape();
			line2.graphics.lineStyle(20, 0x00ff00, 1, true, LineScaleMode.NORMAL, CapsStyle.ROUND);  
			line2.graphics.moveTo(250, 100);
			line2.graphics.curveTo(325, 50, 400, 100);
			addChild(line2);

			var line3 : Shape = new Shape();
			line3.graphics.lineStyle(20, 0x00ff00, 1, true, LineScaleMode.NORMAL, CapsStyle.SQUARE);  
			line3.graphics.moveTo(450, 100);
			line3.graphics.curveTo(525, 50, 600, 100);
			addChild(line3);
		}
	}
}