home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / makers / search.dir / 00033.ls < prev    next >
Encoding:
Text File  |  1996-06-12  |  1.6 KB  |  55 lines

  1. on mouseDown
  2.   global InSub, Chapter, LastLine, StartSprite
  3.   set theSprite to the clickOn
  4.   if the name of cast the castNum of sprite theSprite contains "down" then
  5.     exit
  6.   end if
  7.   set LastLine to EMPTY
  8.   if the frame > 10 then
  9.     repeat with i = 10 to 42
  10.       puppetSprite(i, 0)
  11.     end repeat
  12.     go(1)
  13.   end if
  14.   hiliteSprite(theSprite)
  15.   if the locH of sprite 10 < 1000 then
  16.     set the locH of sprite 10 to the locH of sprite 10 + 1000
  17.   end if
  18.   put " " into field "subSubList"
  19.   if Chapter <> EMPTY then
  20.     set temp to field "TempText"
  21.   end if
  22.   set currField to the number of cast string(theSprite && "headLines")
  23.   put field currField into field "tempText"
  24.   if the number of lines in field currField > 20 then
  25.     delete line 21 to the number of lines in field currField of field currField
  26.     set LastLine to 20
  27.   end if
  28.   if the locH of sprite 17 < 1000 then
  29.     set the locH of sprite 17 to the locH of sprite 17 + 1000
  30.     set the locH of sprite 18 to the locH of sprite 17
  31.   end if
  32.   updateStage()
  33.   set the foreColor of field currField to 1
  34.   set the castNum of sprite 13 to currField
  35.   if the locH of sprite 13 > 1000 then
  36.     set the locH of sprite 13 to the locH of sprite 13 - 1000
  37.   end if
  38.   updateStage()
  39.   if LastLine = EMPTY then
  40.     if the locH of sprite 15 < 1000 then
  41.       set the locH of sprite 15 to the locH of sprite 15 + 1000
  42.       set the locH of sprite 16 to the locH of sprite 15
  43.     end if
  44.   else
  45.     placeArrow(13, 15)
  46.   end if
  47.   updateStage()
  48.   if Chapter <> EMPTY then
  49.     put temp into field string(Chapter && "HeadLines")
  50.   end if
  51.   set Chapter to theSprite
  52.   set InSub to 1
  53.   set StartSprite to the number of cast "1"
  54. end
  55.