home *** CD-ROM | disk | FTP | other *** search
/ GameStar 1998 November (Bonus) / GAMESTAR11B.ISO / ENCYC99 / MM / T620272A.DCR / Scripts_22.ls < prev    next >
Encoding:
Text File  |  1998-06-29  |  919 b   |  29 lines

  1. global cursorGod, KeyMaster, ScrollBar, theBrain, calcButton
  2.  
  3. on exitFrame
  4.   set bgSprite to 3
  5.   set upSprite to 4
  6.   set downSprite to 5
  7.   set grabberSprite to 6
  8.   set scrolledSprite to 1
  9.   set scrolledLineHeight to 18
  10.   set ScrollBar to new(script "Class ScrollBar", "light", bgSprite, upSprite, downSprite, grabberSprite, scrolledSprite, scrolledLineHeight)
  11.   subscribe(ScrollBar, cursorGod)
  12.   set the cursor of sprite 20 to 1
  13.   set the cursor of sprite 21 to 1
  14.   set theBrain to new(script "Class InterestCalculator")
  15.   set calcButton to new(script "Class PictButton", 7)
  16.   set pictList to [member "CalcOn", member "CalcUp", member "CalcDown", member "CalcOff"]
  17.   setPicts(calcButton, pictList)
  18.   linkUp(calcButton, theBrain, #calculate)
  19.   subscribe(calcButton, cursorGod)
  20.   turnOff(calcButton)
  21.   linkUp(KeyMaster, calcButton, theBrain)
  22.   go(2)
  23.   set the stageColor to the stageColor
  24. end
  25.  
  26. on keyDown
  27.   nothing()
  28. end
  29.