 ﻿package ender.threads
 {
+
+	import flash.utils.Dictionary;
+
 	/**
 	 * The ThreadSchedule maintains the schedule of a set of threads for a specified
 	 * priority. When enough time has elapsed that these threads should be scheduled to run,

		 * @param thread Thread to check for.
		 * @return Returns true if the thread exists in the system, false otherwise.
		 */
		public static function isThreadKnown(thread:IThread):Boolean {
			return allThreads[thread.runnable];
		}

		/**

	public class ThreadSchedule
	{
		/** The number of milliseconds since the last time the threads were executed. */
		protected var _lastFiring : uint = 0;
		/** The threads to be executed. */
		public var _threads : Array = [];
		/** The threads scheduled for execution app-wide. */
		public static var allThreads : Dictionary = new Dictionary(false);
		/** Priority for this set of threads. */
		protected var _priority : int;

		/**
		 * Constructor.
		 * 
		 * @param priority Priority to run these threads at.
		 */
		public function ThreadSchedule(priority : int)
		{
			_priority = priority;
		}

