2006/01/16 | as疑问
类别(Flash&AS2) | 评论(1) | 阅读(31) | 发表于 18:20
刚刚在laoshe上看到as画圆形代码如下
var clip:MovieClip = this.createEmptyMovieClip("circle_mc", this.getNextHighestDepth());
circle_mc._x = circle_mc._y=150;
circle_mc.lineStyle(200, 0x0, 100);
circle_mc.moveTo(0, 0);
circle_mc.lineTo(0.2, 0);
试了成功了,但是怎么也想不通
circle_mc.moveTo(0, 0);
circle_mc.lineTo(0.2, 0);
我只能理解
_root.createEmptyMovieClip( "triangle", 1 );
with (_root.triangle){
beginFill (0x0000FF, 50);
lineStyle (5, 0xFF00FF, 100);
moveTo (200, 200);
lineTo (300, 300);
lineTo (100, 300);
lineTo (200, 200);
endFill();
} 这样的话三角形的代码
这两句怎么就能画个圆呢,晕!望高手路过时指点me一下!
0

评论Comments

日志分类
首页[116]
Flash&AS2[56]
FMS[3]
Flex&AS3[5]
Asp[5]
My Works[13]
My Life[34]