Revision: 3141
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 7, 2007 14:21 by mswallace
Initial Code
var lineDrawing:MovieClip = new MovieClip(); this.addChild(lineDrawing); lineDrawing.graphics.lineStyle(1, 0x000000, 1 ); lineDrawing.graphics.beginFill( 0x990000, 1 ); lineDrawing.graphics.moveTo(100,100); lineDrawing.graphics.lineTo(100,200); lineDrawing.graphics.lineTo(300,200); lineDrawing.graphics.lineTo(300,100); lineDrawing.graphics.curveTo(200,0, 100,100); //the first two numbers are your control point for the curve ///Glow Filter var glow:GlowFilter = new GlowFilter(); glow.color = 0x009900; glow.alpha = 1; glow.blurX = 25; glow.blurY = 25; var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.color = 0x000000; dropShadow.blurX = 10; dropShadow.blurY = 10; dropShadow.angle = 0; dropShadow.alpha = 0.5; dropShadow.distance = 25; var filtersArray:Array = new Array(glow, dropShadow); lineDrawing.filters = filtersArray;
Initial URL
Initial Description
Initial Title
AS3 Curved Line Drawing API and Glow
Initial Tags
actionscript, filter, line, api, 3
Initial Language
ActionScript 3