Techblog

Tech Blog

Our latest geek adventures!

14 March lineStyle upgrade in Flash 8

Posted by Gert-Jan on in Flash+ActionScript

You probably already know this, but I just found out yesterday that drawing lines is greatly enhanched in Flash 8 (and Actionscript 2). There are 5 new parameters added to the lineStyle function:

lineStyle(thickness:Number, rgb:Number, alpha:Number, pixelHinting:Boolean, noScale:String, capsStyle:String, jointStyle:String, miterLimit:Number)

This means that you have a lot more control over the style of your lines. You can do stuff like this:

See the Adobe Livedocs for more info.

Leave a Reply