document.as

来自「跳动的五彩多边形」· AS 代码 · 共 23 行

AS
23
字号
package  
{
	/*
	*	A Dancing Polygon Demonstration in Actionscript 3
	*   from shinedraw.com
	*/
	
	import flash.events.Event;	
	import com.shinedraw.drawings.DancingPolygon;	
	import flash.display.MovieClip;
	
	public class Document extends MovieClip{
		public function Document(){
			this.addEventListener(Event.ADDED_TO_STAGE, on_added_to_stage);
		}
		
		private function on_added_to_stage(e : Event):void{
			var dancingPolygon : DancingPolygon = new DancingPolygon();
			addChild(dancingPolygon);
		}
	}
}

⌨️ 快捷键说明

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