![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
|
|||||
|
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 |
![]() |
Часовой пояс GMT +4, время: 16:28. |
|
|
« Предыдущая тема | Следующая тема » |
|
|