home *** CD-ROM | disk | FTP | other *** search
- function SwitchTab(whichTab, whichMenuText, whichVarText, numItems, theLastButton, whichFrame, scrollCount, selectScrollCount)
- {
- if(whichTab != currentTab)
- {
- EasterEggIsOn = false;
- screenflag2 = 0;
- startingTab = true;
- currentTab = whichTab;
- num_Items = numItems;
- setProperty("itemBar" + lastButton, _alpha, 10);
- if(scrollcount == selectScrollCount)
- {
- setProperty("ItemBar" + theLastButton, _alpha, 20);
- }
- _level4.gotoAndStop(2);
- lastButton = theLastButton;
- if(whichTab == 2)
- {
- if(currentExtraMode == 0)
- {
- gotoAndPlay(whichFrame);
- }
- else
- {
- gotoAndPlay(9);
- }
- }
- else
- {
- gotoAndPlay(whichFrame);
- }
- }
- }
- function selectItem(theBoxNum, theItemNum, theLastButton, theCurrentItem, whichFrame, scrollCount, selectScrollCount, theBoxVar)
- {
- if((theLastButton != theBoxNum | scrollcount != eval(selectScrollCount)) & Number(theItemNum) != 0)
- {
- EasterEggIsOn = false;
- screenflag2 = 1;
- if(_level5.soundFlagValue)
- {
- buttSound.start();
- }
- _level4.gotoAndStop(2);
- setProperty("itemBar" + (theBoxNum + maxScroll * scrollCount), _alpha, 20);
- if(scrollCount == eval(selectScrollCount))
- {
- setProperty("itemBar" + theLastButton, _alpha, 10);
- }
- set(theBoxVar,theBoxNum);
- lastButton = theBoxNum;
- set(theCurrentItem,theItemNum);
- set(selectScrollCount,scrollCount);
- if(currentTab == 2)
- {
- if(eval("extratype" + theItemNum) == "All Images are 1024x768")
- {
- gotoAndPlay(9);
- currentExtraMode = 1;
- }
- else
- {
- gotoAndPlay(whichFrame);
- currentExtraMode = 0;
- }
- }
- else
- {
- gotoAndPlay(whichFrame);
- }
- }
- }
- function scrollListDown(whichVar, whichItem, whichItemNum, numItems, top_Item, top_ItemName, scrollCount, scrollCountName, selectedScroll)
- {
- if(numItems - scrollMax >= top_Item)
- {
- var theNewTop = Number(top_Item + scrollMax);
- setProperty("itemBar" + lastButton, _alpha, 10);
- if(currentTab != 4)
- {
- set(whichVar + 1,eval(whichItem + (top_Item + scrollMax)));
- set(whichVar + 2,eval(whichItem + (top_Item + (scrollMax + 1))));
- set(whichVar + 3,eval(whichItem + (top_Item + (scrollMax + 2))));
- set(whichVar + 4,eval(whichItem + (top_Item + (scrollMax + 3))));
- set(whichVar + 5,eval(whichItem + (top_Item + (scrollMax + 4))));
- set(whichVar + 6,eval(whichItem + (top_Item + (scrollMax + 5))));
- set(whichVar + 7,eval(whichItem + (top_Item + (scrollMax + 6))));
- set(whichVar + 8,eval(whichItem + (top_Item + (scrollMax + 7))));
- set(whichVar + 9,eval(whichItem + (top_Item + (scrollMax + 8))));
- }
- else
- {
- set(whichVar + 1,eval(whichItem + (top_Item - 1 + scrollMax)));
- set(whichVar + 2,eval(whichItem + (top_Item - 1 + (scrollMax + 1))));
- set(whichVar + 3,eval(whichItem + (top_Item - 1 + (scrollMax + 2))));
- set(whichVar + 4,eval(whichItem + (top_Item - 1 + (scrollMax + 3))));
- set(whichVar + 5,eval(whichItem + (top_Item - 1 + (scrollMax + 4))));
- set(whichVar + 6,eval(whichItem + (top_Item - 1 + (scrollMax + 5))));
- set(whichVar + 7,eval(whichItem + (top_Item - 1 + (scrollMax + 6))));
- set(whichVar + 8,eval(whichItem + (top_Item - 1 + (scrollMax + 7))));
- set(whichVar + 9,eval(whichItem + (top_Item - 1 + (scrollMax + 8))));
- }
- set(top_ItemName,theNewTop);
- set(scrollCountName,scrollCount + 1);
- if(currentTab == 1)
- {
- theBox1._y = 224 + 160 * ((scrollCount + 1) / int(numItems / scrollMax + 1));
- DemoBox_y = theBox1._y;
- }
- if(currentTab == 2)
- {
- theBox2._y = 224 + 160 * ((scrollCount + 1) / int(numItems / scrollMax + 1));
- ExtraBox_y = theBox2._y;
- }
- if(currentTab == 3)
- {
- theBox3._y = 224 + 160 * ((scrollCount + 1) / int(numItems / scrollMax + 1));
- FileBox_y = theBox3._y;
- }
- if(currentTab == 4)
- {
- theBox._y = 224 + 160 * (scrollCount / int(numItems / scrollMax + 1));
- GameBox_y = theBox._y;
- }
- var tempScroll = Number(scrollCount + 1);
- if(tempScroll == selectedScroll)
- {
- setProperty("itemBar" + lastButton, _alpha, 20);
- }
- set(whichItemNum + 1,theNewTop);
- set(whichItemNum + 2,theNewTop + 1);
- set(whichItemNum + 3,theNewTop + 2);
- set(whichItemNum + 4,theNewTop + 3);
- set(whichItemNum + 5,theNewTop + 4);
- set(whichItemNum + 6,theNewTop + 5);
- set(whichItemNum + 7,theNewTop + 6);
- set(whichItemNum + 8,theNewTop + 7);
- set(whichItemNum + 9,theNewTop + 8);
- }
- }
- function scrollListUp(whichVar, whichItem, whichItemNum, numItems, top_Item, top_ItemName, scrollCount, scrollCountName, selectedScroll)
- {
- if(1 < top_Item)
- {
- var theNewTop = Number(top_Item - scrollMax);
- setProperty("itemBar" + lastButton, _alpha, 10);
- if(currentTab != 4)
- {
- set(whichVar + 1,eval(whichItem + (top_Item - scrollMax)));
- set(whichVar + 2,eval(whichItem + (top_Item - (scrollMax - 1))));
- set(whichVar + 3,eval(whichItem + (top_Item - (scrollMax - 2))));
- set(whichVar + 4,eval(whichItem + (top_Item - (scrollMax - 3))));
- set(whichVar + 5,eval(whichItem + (top_Item - (scrollMax - 4))));
- set(whichVar + 6,eval(whichItem + (top_Item - (scrollMax - 5))));
- set(whichVar + 7,eval(whichItem + (top_Item - (scrollMax - 6))));
- set(whichVar + 8,eval(whichItem + (top_Item - (scrollMax - 7))));
- set(whichVar + 9,eval(whichItem + (top_Item - (scrollMax - 8))));
- }
- else
- {
- set(whichVar + 1,eval(whichItem + (top_Item - 1 - scrollMax)));
- set(whichVar + 2,eval(whichItem + (top_Item - 1 - (scrollMax - 1))));
- set(whichVar + 3,eval(whichItem + (top_Item - 1 - (scrollMax - 2))));
- set(whichVar + 4,eval(whichItem + (top_Item - 1 - (scrollMax - 3))));
- set(whichVar + 5,eval(whichItem + (top_Item - 1 - (scrollMax - 4))));
- set(whichVar + 6,eval(whichItem + (top_Item - 1 - (scrollMax - 5))));
- set(whichVar + 7,eval(whichItem + (top_Item - 1 - (scrollMax - 6))));
- set(whichVar + 8,eval(whichItem + (top_Item - 1 - (scrollMax - 7))));
- set(whichVar + 9,eval(whichItem + (top_Item - 1 - (scrollMax - 8))));
- }
- set(top_ItemName,theNewTop);
- set(scrollCountName,scrollCount - 1);
- if(currentTab == 1)
- {
- theBox1._y = 224 + 160 * ((scrollCount - 1) / int(numItems / scrollMax + 1));
- DemoBox_y = theBox1._y;
- }
- if(currentTab == 2)
- {
- theBox2._y = 224 + 160 * ((scrollCount - 1) / int(numItems / scrollMax + 1));
- ExtraBox_y = theBox2._y;
- }
- if(currentTab == 3)
- {
- theBox3._y = 224 + 160 * ((scrollCount - 1) / int(numItems / scrollMax + 1));
- FileBox_y = theBox3._y;
- }
- if(currentTab == 4)
- {
- theBox._y = 224 + 160 * ((scrollCount - 2) / int(numItems / scrollMax + 1));
- GameBox_y = theBox._y;
- }
- var tempScroll = Number(scrollCount - 1);
- if(tempScroll == selectedScroll)
- {
- setProperty("itemBar" + lastButton, _alpha, 20);
- }
- set(whichItemNum + 1,theNewTop);
- set(whichItemNum + 2,theNewTop + 1);
- set(whichItemNum + 3,theNewTop + 2);
- set(whichItemNum + 4,theNewTop + 3);
- set(whichItemNum + 5,theNewTop + 4);
- set(whichItemNum + 6,theNewTop + 5);
- set(whichItemNum + 7,theNewTop + 6);
- set(whichItemNum + 8,theNewTop + 7);
- set(whichItemNum + 9,theNewTop + 8);
- }
- }
- function scrollListBox(whichVar, whichItem, whichItemNum, numItems, top_Item, top_ItemName, scrollCount, scrollCountName, selectedScroll, Box_y, Box_yName)
- {
- var theNewTop = (scrollCount + 1) * scrollMax - 8;
- if(currentTab == 4)
- {
- set(whichVar + 1,eval(whichItem + (theNewTop - 1)));
- set(whichVar + 2,eval(whichItem + theNewTop));
- set(whichVar + 3,eval(whichItem + (theNewTop + 1)));
- set(whichVar + 4,eval(whichItem + (theNewTop + 2)));
- set(whichVar + 5,eval(whichItem + (theNewTop + 3)));
- set(whichVar + 6,eval(whichItem + (theNewTop + 4)));
- set(whichVar + 7,eval(whichItem + (theNewTop + 5)));
- set(whichVar + 8,eval(whichItem + (theNewTop + 6)));
- set(whichVar + 9,eval(whichItem + (theNewTop + 7)));
- }
- else
- {
- set(whichVar + 1,eval(whichItem + theNewTop));
- set(whichVar + 2,eval(whichItem + (theNewTop + 1)));
- set(whichVar + 3,eval(whichItem + (theNewTop + 2)));
- set(whichVar + 4,eval(whichItem + (theNewTop + 3)));
- set(whichVar + 5,eval(whichItem + (theNewTop + 4)));
- set(whichVar + 6,eval(whichItem + (theNewTop + 5)));
- set(whichVar + 7,eval(whichItem + (theNewTop + 6)));
- set(whichVar + 8,eval(whichItem + (theNewTop + 7)));
- set(whichVar + 9,eval(whichItem + (theNewTop + 8)));
- }
- setProperty("itemBar" + lastButton, _alpha, 10);
- set(Box_yName,Box_y);
- if(selectedScroll != 0)
- {
- if(scrollCount == selectedScroll - 1)
- {
- setProperty("itemBar" + lastButton, _alpha, 20);
- }
- }
- else if(scrollCount == selectedScroll)
- {
- setProperty("itemBar" + lastButton, _alpha, 20);
- }
- set(top_ItemName,theNewTop);
- set(scrollCountName,scrollCount + 1);
- set(whichItemNum + 1,theNewTop);
- set(whichItemNum + 2,theNewTop + 1);
- set(whichItemNum + 3,theNewTop + 2);
- set(whichItemNum + 4,theNewTop + 3);
- set(whichItemNum + 5,theNewTop + 4);
- set(whichItemNum + 6,theNewTop + 5);
- set(whichItemNum + 7,theNewTop + 6);
- set(whichItemNum + 8,theNewTop + 7);
- set(whichItemNum + 9,theNewTop + 8);
- }
- loadVariables("Data/demodata.txt","");
- loadVariables("Data/extrasdata.txt","");
- loadVariables("Data/filesdata.txt","");
- loadVariables("Data/databasedata.txt","");
- loadMovieNum("Data/Help.pcg",7,"GET");
- startTime = getTimer();
- startingTab = true;
- buttSound = new Sound(_level1);
- buttSound.attachSound("myButtonSound");
- arGamesDBMain = new Array();
- arGamesDBIndex = new Array();
- arGamesIndexSlice = new Array();
- loadSysTimeOut = 10000;
- searchstr = "";
- thisprocessor = "";
- num_Demos = 0;
- num_Extras = 0;
- num_Files = 0;
- num_Games = 0;
- num_Items = 0;
- scrollMax = 9;
- lastButton = 1;
- currentExtraMode = 0;
- currentTab = 1;
- screenflag1 = 0;
- screenflag2 = 0;
- theCurrentDemo = 1;
- theLastDemo = 1;
- theCurrentGame = 1;
- theLastGame = 1;
- theCurrentExtra = 1;
- theLastExtra = 1;
- theCurrentFile = 1;
- theLastFile = 1;
- topDemo = 1;
- topExtra = 1;
- topFile = 1;
- topDB = 1;
- EasterEggIsOn = false;
- topItem = 1;
- clearItem = 0;
- currentDemoCount = 1;
- currentExtraCount = 1;
- currentFileCount = 1;
- currentGameCount = 1;
- demoCount = 1;
- extraCount = 1;
- fileCount = 1;
- dbCount = 1;
- lastDemoBox = 1;
- lastExtraBox = 1;
- lastFileBox = 1;
- lastGameBox = 1;
- DemoBox_y = 224;
- ExtraBox_y = 224;
- FileBox_y = 224;
- GameBox_y = 224;
-