class ToolTip extends MovieClip {
	var title_txt:TextField;
	var background_mc:MovieClip;
	var homeX:Number;
	var homeY:Number;
	var offsetX:Number = 5;
	var offsetY:Number = 12;
	function TooTip() {
	}
	function onLoad() {
		homeX = this._x;
		homeY = this._y;
		title_txt.selectable = false;
		title_txt.autoSize = true;
		background_mc._alpha = 50;
	}
	function showToolTip(title_str:String, nDepth:Number):Void {
		this.swapDepths(nDepth+1);
		title_txt.text = title_str;
		background_mc._width = title_txt._width;
		followCursor();
		this.onMouseMove = followCursor;
	}
	function hideToolTip():Void {
		delete this.onMouseMove;
		goHome();
	}
	function followCursor():Void {
		this._x += _xmouse+offsetX;
		this._y += _ymouse+offsetY;
		updateAfterEvent();
	}
	function goHome():Void {
		this._x = homeX;
		this._y = homeY;
	}
}
