Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   Jesus brought changes in your life, save the changes? (http://www.flasher.ru/forum/showthread.php?t=59425)

Usnul 16.06.2004 08:48

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
                }
        }

}



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

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