ischedulable.as

来自「用于flash/flex的 as3的 2D图形图像图表的动态生成」· AS 代码 · 共 31 行

AS
31
字号
package flare.animate
{
	/**
	 * Interface for "schedulable" objects that can be run by
	 * the Scheduler class.
	 */
	public interface ISchedulable
	{
		/**
		 * Evaluate a scheduled call.
		 * @param time the current time in milliseconds
		 * @return true if this item should be removed from the scheduler,
		 * false if it should continue to be run.
		 */
		function evaluate(time:Number) : Boolean;
		
		/** A unique name identifying this schedulable object. The default
		 *  is <code>null<code>. If non-null, any other scheduled items with
		 *  the same id will be canceled upon scheduling.
		 *  
		 *  <p>Once an item has been scheduled, it's id should not be changed.
		 *  However, it is left to subclasses to respect this convention.
		 *  If it is not followed, erratic cancels may occur.</p> */
		function get id():String;
		function set id(n:String):void;
		
		/** Invoked if a scheduled item is cancelled by the scheduler. */
		function cancelled():void;
		
	} // end of interface ISchedulable
}

⌨️ 快捷键说明

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