⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 examplebase.as

📁 chart应用蛮广泛的
💻 AS
字号:
package examples
{
	import mx.containers.VBox;
	import flash.events.Event;
	import mx.core.UIComponent;
	
	public class ExampleBase extends VBox
	{
		public function ExampleBase():void
		{
			super();
			percentWidth=100;
			percentHeight=100;
		}
		
		[Bindable("stepChange")] public function get numSteps():int
		{
			return Math.max(1,descriptions.length);
		}
		public function get descriptions():Array
		{
			return [];
		}

		public function start():void		
		{
		}
		
		public function stop():void
		{
		}
		
		public function nextStep():void
		{
			if(currentStep < numSteps - 1)
				currentStep = currentStep + 1;
		}
		public function prevStep():void
		{
			if(currentStep > 0)
				currentStep = currentStep - 1;
		}
		private var _step:int;

		public function get currentStep():int
		{
			return _step;
		}
		[Bindable("stepChange")] public function set currentStep(value:int):void
		{
			_step = value;
			setupStep(_step);
			dispatchEvent(new Event("stepChange"));
		}
		
		[Bindable("stepChange")] public function get currentStepDescription():String
		{
			return descriptions[_step];
		}
		protected function setupStep(index:int):void
		{
		}
		
		[Bindable] public var controls:Array;
	}
}

⌨️ 快捷键说明

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