Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Архив Flasher.ru > Flash > ActionScript

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему  
Старый 16.06.2004, 08:48
Usnul вне форума Посмотреть профиль Отправить личное сообщение для Usnul Посетить домашнюю страницу Usnul Найти все сообщения от Usnul
  № 1  
Usnul
 
Аватар для Usnul

Регистрация: Mar 2001
Адрес: во сне
Сообщений: 2,701
Отправить сообщение для Usnul с помощью ICQ
По умолчанию Jesus brought changes in your life, save the changes?

Код:
/*	Created by Alex Goldring 06/2004 copyright (c)

	Instalation guide:
		1) Copy "skins" folder and this file into the folder with your project
		2) Add the following lines somewhere in your project's code:
			#include button.as
			_root.createEmptyMovieClip("skin",20);
			_root.skin.loadVariables("skins/default/settings.txt");
	
	Note that this script is a NON comercial project, so you can you it without my permission
	but i would ask you to let users of you project know that this script is my work
*/
_root.skinpath="skins/default/";
_root.cButton=function(path,name,depth,txt,x,y){
	path.createEmptyMovieClip(name,depth);
	path[name].createEmptyMovieClip("img",1);
	path[name].img.loadMovie(_root.skinpath+"button.swf");
	path[name]._x=x;
	path[name]._y=y;
	path[name].name=txt;
	path[name].onEnterFrame=function(){
		if(this.getBytesLoaded()==this.getBytesTotal()){
				this.img.lb._x=this.img.lb._y=this.img.rb._y=this.img.m._y=0;
				this.createTextField("txt",4,this.img.lb._width,0,0,0);
				this.txt.autoSize=true;
				this.txt.selectable=false;
				this.TF=new TextFormat();
				this.TF.font=_root.skin.ButtonFont;
				this.TF.bold=_root.skin.ButtonFontBold;
				this.TF.italic=_root.skin.ButtonFontItalic;
				this.TF.color=_root.skin.ButtonFontColour;
				this.txt.setNewTextFormat(this.TF);
				this.txt.text=this.name;
				this.img.m._x=this.img.lb._width;
				this.img.m._width=this.txt._width;
				this.img.rb._x=this.img.lb._width+this.txt._width
		}
	}

}
__________________
I'm only happy when it rains.
Waka Laka

Создать новую тему   Часовой пояс GMT +4, время: 23:55.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


Часовой пояс GMT +4, время: 23:55.


Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.