Revision: 3140
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 7, 2007 14:19 by mswallace
Initial Code
var lineDrawing:MovieClip = new MovieClip(); this.addChild(lineDrawing); lineDrawing.graphics.lineStyle(1); lineDrawing.graphics.moveTo(0,0); ///This is where we start drawing lineDrawing.graphics.lineTo(350, 600); lineDrawing.graphics.lineTo(600, 400); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.color = 0x000000; dropShadow.blurX = 10; dropShadow.blurY = 10; dropShadow.angle = 0; dropShadow.alpha = 0.5; dropShadow.distance = 10; var filtersArray:Array = new Array(dropShadow); lineDrawing.filters = filtersArray;
Initial URL
Initial Description
Just some code that shows you how to set up the Drawing API and draw a line and also use the dropshadow filter.
Initial Title
AS3 Drawing API Line Drawing and DropShadow
Initial Tags
actionscript, flash, filter, api, 3
Initial Language
ActionScript 3