home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.46 / pcgamercd / Data / items.pcg / scripts / DefineSprite_140 / frame_8 / DoAction.as
Text File  |  2004-08-12  |  400b  |  8 lines

  1. var thepercent = (_parent.theBox._y - 224) / 160;
  2. var theCeil = int(_parent.num_Games / _parent.scrollMax);
  3. if(thepercent >= 1)
  4. {
  5.    theCeil = _parent.num_Games / _parent.scrollMax;
  6. }
  7. _parent.scrollListBox("menugame","arGamesDBSlice.","gamenumber",_parent.arGamesDBSlice.length,_parent.topDB,"topDB",int(theCeil * thepercent),"dbCount",_parent.currentGameCount,_parent.theBox._y,"GameBox_y");
  8.