AS3绘制虚线图形

by 蛐蛐 15. November 2008 08:49
项目开发中遇到采用虚线绘制曲线、圆形和矩形,通过参考一位老外的虚线绘制方法,在其基础上修改和增加了绘制圆形、椭圆、矩形的方法。
 
效果图:
 
 
 类文件(Flex中使用):GDashedLine.as (19.80 kb)
 
使用方法:
 
1var dl:GDashedLine = new GDashedLine(target,onLength,offLength);
2dl.drawEllipse(x,y,width,height);

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

AS3 | Flex/AIR

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

Calendar

<<  January 2009  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

RecentComments

Comment RSS