比较少见的绘制虚线的方法

import flash.display.Shape; var separatorShape:Shape = new Shape(); var bitmapFill:BitmapData = new BitmapData(2,1,true,0); bitmapFill.setPixel32(0, 0, 0xFF999999); var g:Graphics = this.separatorShape.graphics; g.clear(); g.beginBitmapFill(bitmapFill); g.drawRect(0, 0,100, 1); g.endFill(); separatorShape.y = 20; addChild(separatorShape);

posted on 2013-02-27 15:18  AS3.0  阅读(737)  评论(0编辑  收藏  举报

导航