Показать сообщение отдельно
Старый 29.08.2007, 12:41
telit вне форума Посмотреть профиль Отправить личное сообщение для telit Найти все сообщения от telit
  № 3  
Ответить с цитированием
telit
 
Аватар для telit

Регистрация: Jul 2007
Сообщений: 306
Все в первом кадре!

Код:
function showTip() {		
	
	show_mc.dX = show_mc._width/2;
	show_mc.dY = show_mc._height+20;
	show_mc._visible = true;
	show_mc._x = _xmouse-show_mc.dX;
	show_mc._y = _ymouse-show_mc.dY;
	show_mc._alpha = 0;

	show_mc.onEnterFrame = function() {
		show_mc._alpha += 10;
		if (this._alpha >= 100) {
			this.onEnterFrame = function() {
				show_mc._x += (_xmouse-show_mc.dX-this._x)*.1;
				show_mc._y += (_ymouse-show_mc.dY-this._y)*.1;
			};
		};
	};
	
	
show_mc.swapDepths(50000);
}


function hideTip() {
	delete show_mc.onEnterFrame;
	show_mc._visible = false;
}
hideTip();

var _dep:Number = 0;


first_btn.onRollOver = function(){
	
showTip();
}

first_btn.onRollOut = function(){
hideTip();
}

first_btn.onReleaseOutside = function(){
hideTip();
}
first_btn.onRelease = function(){

	show_mc.createEmptyMovieClip("g_mc", this.getNextHighestDepth()).loadMovie("pic01.jpg");

}


Последний раз редактировалось iNils; 29.08.2007 в 16:26.