home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 7.13
/
2002-03_Disc_7.13.bin
/
Items.pcg
/
scripts
/
DefineSprite_138
/
frame_2
/
DoAction.as
Wrap
Text File
|
2001-12-06
|
400b
|
8 lines
var thepercent = (_parent.theBox1._y - 224) / 160;
var theCeil = Math.ceil(_parent.num_Demos / _parent.scrollMax);
if(thepercent >= 1)
{
theCeil = int(_parent.num_Demos / _parent.scrollMax);
}
_parent.scrollListBox("menudemo","demoname","demonumber",_parent.num_Items,_parent.topDemo,"topDemo",int(theCeil * thepercent),"demoCount",_parent.currentDemoCount,_parent.theBox1._y,"DemoBox_y");