![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
|
|||||
|
Hobbi eto takoe u meja uzhe
delat' GUI v stile alja Winda ![]() vot kusok staroj (nedodelannoj versii )----------------- //System Initialization mod //Creating Objects and variables _root.createEmptyMovieClip("FWOSvariables",1); _root.createEmptyMovieClip("FWOSsounds",2); _root.createEmptyMovieClip("FWOSdesktop",3); _root.createEmptyMovieClip("FWOSwindows",4); _root.createEmptyMovieClip("FWOStaskbar",5); _root.createEmptyMovieClip("FWOStips",6); _root.createEmptyMovieClip("FWOSskin",7); _root.createEmptyMovieClip("FWOSloader",8); _root.createEmptyMovieClip("FWOSfunctions",9); _root.createEmptyMovieClip("FWOSdebuger",10); _root.FWOSvariables.createEmptyMovieClip("desktop",1); _root.FWOSvariables.createEmptyMovieClip("menu",2); _root.FWOSskin.createEmptyMovieClip("Settings",1); _root.FWOSvariables.drawLoader=1; _root.FWOSdebuger.UseOptimaser=1 _root.FWOSdebuger.FPS=120; _root.FWOSloader.Speed=0; //Formation flags _root.FWOSdebuger.DebugFormationCheck=0; _root.FWOSdebuger.LoaderFormationCheck=0; //Creating Functions //Function for creation of the plain text box //Structure: _root.FWOSfunctions.CreatePlainTextBox(location,name,depth,x,y,width,height,size) _root.FWOSfunctions.CreatePlainTextBox=function(location,name,depth,x,y,width,height,size){ location.createTextField(name,depth,x,y,width,height); location[name+"TextFormat"]=new TextFormat; location[name+"TextFormat"].font="Arial"; location[name+"TextFormat"].size=size; location[name].setNewTextFormat(location[name+"TextFormat"]); } //Function for creation of the rectangle //Structure: _root.FWOSfunctions.CreateRectangle(location,x1,y1,x2,y2,fillColour,fillAlpha,lineColour,lineThickness,lineAlpha) _root.FWOSfunctions.CreateRectangle=function(location,x1,y1,x2,y2,fillColour,fillAlpha,lineColour,lineThickness,lineAlpha){ location.lineStyle(lineThickness,lineColour,lineAlpha); location.beginFill(fillColour,fillAlpha); location.moveTo(x1,y1); location.lineTo(x2,y1); location.lineTo(x2,y2); location.lineTo(x1,y2); location.lineTo(x1,y1); location.endFill(); } //Creating Debuger _root.FWOSdebuger.onEnterFrame = function(){ this.ShowLog=1 //Setting default values if(typeof(_root.FWOSvariables.StandartSystemCheckTimeInterval)!="number"){_root.FWOSvariables.StandartSystemCheckTimeInterval=10000}; if(typeof(this.CheckTimePeriod)!="number"){this.CheckTimeInterval=_root.FWOSvariables.StandartSystemCheckTimeInterval}; if(typeof(this.FPScounter)!="number"){this.FPScounter=0}; if(typeof(this.FPStimer)!="number"){this.FPStimer=0}; //FPS counter this.FPScounter+=1; if(this.FPStimer+1000<=getTimer()){this.FPS=this.FPScounter, this.FPScounter=0, this.FPStimer=getTimer()} //Optimisor if(this.UseOptimaser==1){ this.CheckTimePeriod=_root.FWOSvariables.StandartSystemCheckTimeInterval*this.FPS/120; if(this.FPS>25){_root._quality="high"}; if(this.FPS<25 && this.FPS>20){_root._quality="medium"}; if(this.FPS<20){_root._quality="low"}; } //Settings of the "Global check for errors" if(this.CheckTimeInterval>=getTimer()-this.CheckTimer && _root.FWOSloader==undefined){this.CheckAll=1,this.CheckTimer=getTimer()}//Scan whole system for all kind of errors ("Global check for errors") if(this.CheckAll==1){this.ReportsRecord=1, this.CriticalCheck=1, this.CheckAll=0}//Parametrs of "global check for errors" //Log keeper //Structure of updating: _root.FWOSdebuger.AddToLog("info") this.AddToLog=function(info){ if(typeof(_root.FWOSdebuger.Log)!="object"){_root.FWOSdebuger.Log=new Array(), _root.FWOSdebuger.AddToLog("(system report) log file is created")} //Creating Log array if nesserely type=info.slice(1,info.indexOf(")")) //Extracting the type of the report report=info.slice(info.indexOf(")")+2,info.length) //Substructing the type of report from the "info" variable h=new Date().getHours(),m=new Date().getMinutes(),s=new Date().getSeconds(); //Getting time values _root.FWOSdebuger.Log[_root.FWOSdebuger.Log.length]=new Array(); //Creating the report array _root.FWOSdebuger.Log[_root.FWOSdebuger.Log.length-1][0]=h+":"+m+":"+s; //Time of creating perort _root.FWOSdebuger.Log[_root.FWOSdebuger.Log.length-1][1]=getTimer(); //Movie timer value at the time of creating of the report _root.FWOSdebuger.Log[_root.FWOSdebuger.Log.length-1][2]=type; //Reporting the type of the report _root.FWOSdebuger.Log[_root.FWOSdebuger.Log.length-1][3]=report; //Updating log info } //Rarametrs of check for critical errors if(this.CriticalCheck==1){ if(_root.FWOSvariables==undefined){this.AddToLog("(critical error) no variables module is presented")}; if(_root.FWOSsounds==undefined){this.AddToLog("(critical error) no sounds module is presented")}; if(_root.FWOSdesktop==undefined){this.AddToLog("(critical error) no desktop module is presented")}; if(_root.FWOSwindows==undefined){this.AddToLog("(critical error) no windows module is presented")}; if(_root.FWOStaskbar==undefined){this.AddToLog("(critical error) no taskbar module is presented")}; if(_root.FWOStips==undefined){this.AddToLog("(critical error) no tips module is presented")}; this.CriticalCheck=0; } //Viewing of the log if(this.ShowLog==1){ this.clear(); _root.FWOSfunctions.CreateRectangle(this,300,0,800,600,0xffffff,70,0x000000,1,100) _root.FWOSfunctions.CreatePlainTextBox(this,"LogTextBox",1,300,0,500,600,12); this.LogTextBox.text=this.Log.join("\n"); } else{this.clear(), this.Log.removeMovieClip()} //Preparing report about debug module formation if(this.debugFormationCheck==0){_root.FWOSdebuger.AddToLog("(system report) debuger module is formed and launched"), _root.FWOSdebuger.CriticalCheck=1, this.debugFormationCheck=1}; } //System Initialization mod check //System Initialization mod END
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
//-------------------------------------------------------------------------------------------
//System Loading mod _root.FWOSloader.onEnterFrame=function(){ //Calculating the percentage of the load this.LoadPercentage=Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*10000)/100 //Calculating the speed if(this.SpeedTimer+100<=getTimer()){ this.Speed=(_root.getBytesLoaded()-this.SpeedMeter)*10; this.SpeedMeter=_root.getBytesLoaded(); this.SpeedTimer=getTimer(); } //Drawing if(_root.FWOSvariables.drawLoader==1){ this.clear(); this.lineStyle(1,0x000000,100); this.beginFill(0xcccccc,100); this.lineTo(800,0); this.lineTo(800,600); this.lineTo(0,600); this.lineTo(0,0); this.beginFill(0xECE9D8,100); this.moveTo(600,150); this.lineTo(600,450); this.lineTo(200,450); this.lineStyle(1,0xffffff,100); this.lineTo(200,150); this.lineTo(600,150); this.endFill(); //GUI Script loading grid _root.FWOSfunctions.CreateRectangle(this,230,190,570,210,0xDEDACB,100,0xffffff,1,100) //Variables loading grid _root.FWOSfunctions.CreateRectangle(this,230,225,570,240,0xDEDACB,100,0xffffff,1,100) //Heading 1 this.createTextField("Heading1",1,200,150,400,20); this.Heading1TextFormat=new TextFormat; this.Heading1TextFormat.font="Arial"; this.Heading1TextFormat.bold=true; this.Heading1TextFormat.align="center" this.Heading1TextFormat.size=15; this.Heading1.textColor=0xACA899; this.Heading1.setNewTextFormat(this.Heading1TextFormat); this.Heading1.text="Macromedia Flash-based Graphic User Interface"; //Heading 2 this.createTextField("Heading2",2,200,170,400,20); this.Heading2TextFormat=new TextFormat; this.Heading2TextFormat.font="Arial"; this.Heading2TextFormat.align="center"; this.Heading2TextFormat.size=12; this.Heading2.setNewTextFormat(this.Heading2TextFormat); this.Heading2.text="Please wait while loading is processing."; _root.FWOSfunctions.CreatePlainTextBox(this,"GUIpercentage",3,230,190,400,20,12), this.GUIpercentage.autoSize="left"; //GUI loading percentage text field _root.FWOSfunctions.CreatePlainTextBox(this,"GUIstatus",4,230,208,400,20,11); //GUI status of load text field _root.FWOSfunctions.CreatePlainTextBox(this,"VARpercentage",5,230,223,400,20,12); //Variables loading percentage text field _root.FWOSvariables.drawLoader=0; } if(this.speed>0 or _root.FWOSvariables.drawLoader==1){ //GUI loading status _root.FWOSfunctions.CreateRectangle(this,230,190,230+340*Math.abs(this.LoadPercentage)/100,210,0x00CC00,100,0xffffff,1,100); //GUI loading bar this.GUIstatus.text="Speed:"+Math.floor(this.speed/10)/100+"Kb | Loaded:"+Math.floor(_root.getBytesLoaded()/10)/100+"Kb/"+Math.floor(_root.getBytesTotal()/10)/100+"Kb | time:"+Math.floor(Math.abs(100*(_root.getBytesTotal()-_root.getBytesLoaded()/(this.speed+1))/60))/100+"min"; //GUI status text box this.GUIpercentage.text="GUI - "+this.LoadPercentage+"% complete"; //GUI loading percentage text bar if((this.GUIpercentage._x+this.GUIpercentage._width)<570){this.GUIpercentage._x=230+340*Math.abs(this.LoadPercentage*100)/100} //Updating position of GUI percentage text box up to the end of the GUI loading bar (if x of loading bar + width og percentage text box is smaller than x of grid + width of grid) else if((this.GUIpercentage._x+this.GUIpercentage._width)>570){this.GUIpercentage._x=570-this.GUIpercentage._width}; //Updating position of GUI percentage text box up to the end of the GUI loading bar (if x of loading bar + width og percentage text box is greater or equal to x of grid + width of grid) } if(this.LoadPercentage>=100){ //Loading of system variables if(_root.FWOSloader.VariablesLoaded==undefined){ _root.FWOSvariables.loadVariables("variables.txt"); //Start of the system variables load _root.FWOSloader.VariablesLoaded="VariablesStart"; //Report about begining of the system variables load _root.FWOSdebuger.AddToLog("(system report) attempt to load system variables"); //Logging the fact of the start of system variables load } if(_root.FWOSloader.VariablesLoaded=="VariablesStart"){_root.FWOSvariables.onData=function(){_root.FWOSloader.VariablesLoaded="VariablesLoad", _root.FWOSdebuger.AddToLog("(system report) system variables are loaded")}}; //Check for complete of the system variables loading //Loading desktop items info if(_root.FWOSloader.VariablesLoaded=="VariablesLoad"){ _root.FWOSvariables.desktop.loadVariables("desktop.txt"); _root.FWOSloader.VariablesLoaded="DesktopItemsStart"; _root.FWOSdebuger.AddToLog("(system report) attempt to load desktop items"); } if(_root.FWOSloader.VariablesLoaded=="DesktopItemsStart"){_root.FWOSvariables.desktop.onData=function(){_root.FWOSloader.VariablesLoaded="DesktopItems Load", _root.FWOSdebuger.AddToLog("(system report) desktop items are loaded")}}; //Loading menu items info if(_root.FWOSloader.VariablesLoaded=="DesktopItemsLoad"){ _root.FWOSvariables.menu.loadVariables("menu.txt"); _root.FWOSloader.VariablesLoaded="MenuItemsStart"; _root.FWOSdebuger.AddToLog("(system report) attempt to load menu items"); } if(_root.FWOSloader.VariablesLoaded=="MenuItemsStart"){_root.FWOSvariables.menu.onData=function(){_root.FWOSloader.VariablesLoaded="MenuItemsLoad", _root.FWOSdebuger.AddToLog("(system report) menu items are loaded")}}; //Check for existing local variables //Loading of existing local variables //Loading skin if(_root.FWOSloader.VariablesLoaded=="MenuItemsLoad"){ _root.FWOSskin.Settings.loadVariables("skins/"+_root.FWOSvariables.SkinName+"/settings.txt"); //Start of the skin settings load _root.FWOSloader.VariablesLoaded="SkinSettingsStart"; //Report about begining of the skin settings load _root.FWOSdebuger.AddToLog("(system report) attempt to load the skin settings"); //Logging the fact of the start of skin settings load } if(_root.FWOSloader.VariablesLoaded=="SkinSettingsStart"){_root.FWOSskin.Settings.onData=function(){_root.FWOSloader.VariablesLoaded="SkinSettingsLoad ", _root.FWOSdebuger.AddToLog("(system report) skin settings are loaded")}}; //Check for complete of the skin settings loading //Check for complete of loading //Rendering of the skin //Check for mistakes in rendering //Preraring the list of sounds //Loading of sounds //Check for complete of loading } } //System Loading mod check //System Loading mod END //------------------------------------------------------------------------------------------- //System Building mod //Creating Desktop mod //Creating Windows mod //Creating toolbar mod //Creating tips mod //System Building mod check //System Building mod END //------------------------------------------------------------------------------------------- //System launching mod //Deliting temporary values //Visualising System //Deliting loader //System Launching mod check //System launching mod END //------------------------------------------------------------------------------------------- //System check //System runing mod //System debug system
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
prikin'te da, do okoshek tam esche kak do luni peshkom
vot ja zanuda ![]() mozhet kto znaet esli takoj kod podvisnet pri vipolnenii?
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
Цитата:
декомпиляй это: http://www.deanliou.com/WinRG/ |
|
|||||
|
vidal
![]()
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
Регистрация: Apr 2003
Адрес: DC
Сообщений: 4,489
|
а ты уснул, извращенец :D
__________________
flash/flex/unity |
|
|||||
|
eto esche pochemu?
![]()
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
Banned
[03.10.2005]
Регистрация: Nov 2003
Сообщений: 425
|
По качану! Бум бум
![]() |
|
|||||
|
durilka ti.
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
Регистрация: Apr 2003
Адрес: DC
Сообщений: 4,489
|
vozmojno
__________________
flash/flex/unity |
![]() |
Часовой пояс GMT +4, время: 13:28. |
|
|
« Предыдущая тема | Следующая тема » |
|
|