摘要: Graphics类所在的包:flash.display继承:objectGraphics 类包含一组可用来创建矢量形状的方法。 支持绘制的显示对象包括 Sprite 和 Shape 对象。 这些类中的每一个类都包括 Graphics 属性,该属性是一个 Graphics 对象。 以下是为便于使用而提供的一些辅助函数:drawRect()、drawRoundRect()、drawCircle() 和 drawEllips()。无法通过 ActionScript 代码直接创建 Graphics 对象。 如果调用 new Graphics(),则会引发异常。Graphics 类是最终类;无法从其派生 阅读全文