Показать сообщение отдельно
Старый 09.01.2004, 04:06
Usnul вне форума Посмотреть профиль Отправить личное сообщение для Usnul Посетить домашнюю страницу Usnul Найти все сообщения от Usnul
  № 2  
Usnul
 
Аватар для Usnul

Регистрация: Mar 2001
Адрес: во сне
Сообщений: 2,701
Отправить сообщение для Usnul с помощью ICQ
//-------------------------------------------------------------------------------------------
//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