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

lineTo

Get Adobe Flash player
by knd 26 Jul 2010
    Embed
package {
    import flash.display.JointStyle;
    import flash.display.CapsStyle;
    import flash.display.Graphics;
    import flash.display.Sprite;
    [SWF(backgroundColor="0")]
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var g:Graphics = this.graphics;
            g.moveTo(223,0);
            for (var i:uint = 0; i< 20; i++)
            {
                g.lineStyle(5 * i, 0xffff80, 0.5,
                false, "normal", 
                CapsStyle.NONE, JointStyle.ROUND);
                g.lineTo(223 + 20 * (i & 1), 20 * i + 22);
            }
        }
    }
}