/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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;