samplecustomshape.as

来自「《Flash AS3殿堂之路》光盘源码 学习ActionScript 3.0」· AS 代码 · 共 22 行

AS
22
字号
package org.kingda.book.display
{
	import flash.display.Sprite;

	public class SampleCustomShape extends Sprite
	{
		public function SampleCustomShape() {
			var foo:StarShape = new StarShape(100, 100,
												  5, 20, 50,
												  0, 0xff9900);
			var bar:StarShape = new StarShape();
			var dd:StarShape = new StarShape(100, 100,
												  5, 20, 50,
												  0, 0x669900);
			bar.x = 100;
			bar.y = 120;
			addChild(foo);
			addChild(bar);
			addChild(dd);
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?