简单的Tip for AS1

      AS相关 2004-11-29 9:56
死乌鸦老拿偶的到处发...自己放出来算了.
简单改了下,精减了些
var tipVal:Number;
var showTip:Function = function (msg:String, col:Number) {
	createTextField("tipText", getNextHighestDepth(), _xmouse + 15, _ymouse + 20, 0, 0);
	if (col != null) {
		tipText.borderColor = tipText.textColor = col;
	} else {
		tipText.borderColor = tipText.textColor = 0xFF9900;
	}
	tipText.autoSize = tipText.border = tipText.background = true;
	tipText.selectable = false;
	tipText.text = msg;
	tipVal = setInterval(function () { tipText._x = _xmouse + 15;tipText._y = _ymouse + 20;}, 10);
};
var endTip:Function = function () {
	clearInterval(tipVal);
	tipText.removeTextField();
};
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}