【发布时间】:2011-07-19 10:00:05
【问题描述】:
我尝试通过编码来绘制一些要点。但是 1px 宽度点似乎在边缘具有特征。 甚至我尝试十次绘制某个位置。
这是我的代码:
private function createPoint(radio:Number, rep:int):Shape{
var s:Shape = new Shape();
var i:int = rep;
while( i-- > 0 ){
s.graphics.beginFill(0, 1);
s.graphics.drawRect(0,0, radio, radio);
s.graphics.endFill();
}
return s;
}
【问题讨论】:
-
您是否将 Shape 添加(addChild)到 displayList 中?您绘制的背景是否与填充颜色不同?
-
你使用什么值作为
radio?
标签: actionscript-3 flash