Custom Graphical Classes : Shape : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Shape »

 

Custom Graphical Classes


 

package {
  import flash.display.Shape;
  import flash.display.*;
  public class Rectangle extends Shape {
    public function Rectangle (w:Number,
                               h:Number,
                               lineThickness:Number,
                               lineColor:uint,
                               fillColor:uint) {
      graphics.lineStyle(lineThickness, lineColor);
      graphics.beginFill(fillColor, 1);
      graphics.drawRect(00, w, h);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» Shape