Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
define("as3/flash/display/GraphicsSolidFill",["module","exports","as3-rt/AS3","as3/flash/display/IGraphicsFill","as3/flash/display/IGraphicsData","as3/Error"], function($module,$exports,AS3,IGraphicsFill,IGraphicsData,Error) { AS3.compilationUnit($module,$exports,function($primaryDeclaration){/*package flash.display {


/**
 * Defines a solid fill.
 * <p>Use a GraphicsSolidFill object with the <code>Graphics.drawGraphicsData()</code> method. Drawing a GraphicsSolidFill object is the equivalent of calling the <code>Graphics.beginFill()</code> method.</p>
 * @see Graphics#beginFill()
 * @see Graphics#drawGraphicsData()
 *
 * /
public final class GraphicsSolidFill implements IGraphicsFill, IGraphicsData {
  /**
   * Indicates the alpha transparency value of the fill. Valid values are 0 (fully transparent) to 1 (fully opaque). The default value is 1. Display objects with alpha set to 0 are active, even though they are invisible.
   * /
  public var alpha:Number = 1.0;
  /**
   * The color of the fill. Valid values are in the hexadecimal format 0xRRGGBB. The default value is 0xFF0000 (or the uint 0).
   * /
  public var color:uint = 0;

  /**
   * Creates a new GraphicsSolidFill object.
   * @param color The color value. Valid values are in the hexadecimal format 0xRRGGBB.
   * @param alpha The alpha transparency value. Valid values are 0 (fully transparent) to 1 (fully opaque).
   *
   * /
  public*/ function GraphicsSolidFill(color/*:uint = 0*/, alpha/*:Number = 1.0*/) {switch(arguments.length){case 0:color=0;case 1:alpha=1.0;}
    throw new Error('not implemented'); // TODO: implement!
  }/*
}
}

============================================== Jangaroo part ==============================================*/
    $primaryDeclaration(AS3.class_($module, {
      implements_: [
        IGraphicsFill,
        IGraphicsData
      ],
      members: {
        alpha: {
          value: 1.0,
          writable: true
        },
        color: {
          value: 0,
          writable: true
        },
        constructor: GraphicsSolidFill
      }
    }));
  });
});
//# sourceMappingURL=GraphicsSolidFill.js.map
New to GrepCode? Check out our FAQ X