topical media & game development

talk show tell print

student-musicpad-Line.ax

student-musicpad-Line.ax [swf] [flash] flex


  package {
          import flash.display.*;
          import flash.filters.GlowFilter;
  
          public class @ax-student-musicpad-Line extends MovieClip {
                  public function @ax-student-musicpad-Line() {
                          var lineDrawing:MovieClip = new MovieClip();
                          with (addChild(lineDrawing) ) {
                                  x = y = 50;
                          }
  
                          lineDrawing.graphics.lineStyle(1, 0x000000, 1 );
                          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;

                          lineDrawing.filters = [glow];
                  }
          }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.