 
     You should have received a copy of the GNU General Public License
     along with Weave.  If not, see <http://www.gnu.org/licenses/>.
-*/
-package weave.utils
-{
-	import flash.display.BitmapData;
-	import flash.external.ExternalInterface;
-	import flash.geom.Point;
-	import flash.system.Capabilities;
-	import flash.ui.Mouse;
-	import flash.ui.MouseCursor;
-	import flash.ui.MouseCursorData;
-	
-	import mx.core.BitmapAsset;
-	
+*/
+package weave.utils
+{
+	import flash.display.BitmapData;
+	import flash.external.ExternalInterface;
+	import flash.geom.Point;
+	import flash.system.Capabilities;
+	import flash.ui.Mouse;
+	import flash.ui.MouseCursor;
+	import flash.ui.MouseCursorData;
+	
+	import mx.core.BitmapAsset;
+	
 	import weave.api.WeaveAPI;
 
-	/**
+	/**
 	 * Easy interface for using native cursors.
-	 * 
+	 * 
 	 * @author skolman
-	 * @author adufilie
-	 */	
-	public class CustomCursorManager
+	 * @author adufilie
+	 */	
+	public class CustomCursorManager
 	{
 		public static var debug:Boolean = false;
 		

		 *    private static var myCursor:Class;
		 *    CustomCursorManager.registerEmbeddedCursor(MY_CURSOR, myCursor, 0, 0);
		 * </code>
		 * @param cursorName A name for the cursor.
		 * @param bitmapAsset The Class containing the embedded cursor image.
		 * @param xHotSpot The X coordinate of the hot spot.  Set to NaN to use the center X coordinate.
		 * @param yHotSpot The Y coordinate of the hot spot.  Set to NaN to use the center Y coordinate.
		 */		
        public static function registerEmbeddedCursor(name:String, bitmapAssetClass:Class, xHotSpot:Number, yHotSpot:Number):void
		{
			var asset:BitmapAsset = new bitmapAssetClass() as BitmapAsset;

		///////////
		// hacks //
		///////////
		
		/**
		 * @private
		 * @TODO Stop using this function and remove it.
		 */
		public static function hack_removeCurrentCursor():void
		{
			if (cursorStack.length == 0)
				return;

			cursorStack.pop();
			updateCursor();
		}
		
		/**
		 * @private
		 * @TODO Stop using this function and remove it.
		 */
		public static function hack_removeAllCursors():void
		{
			cursorStack.length = 0;
			updateCursor();
		}
	}
}
import flash.ui.MouseCursor;

