home *** CD-ROM | disk | FTP | other *** search
/ Discovering Nature in the City / LUONTOCD.iso / pc / files / boardswe.dxr / Internal_1.ls < prev    next >
Encoding:
Text File  |  1996-12-17  |  3.5 KB  |  161 lines

  1. global gRollerList, gSpeciesList, gLinkRollerList, gTextCastLib, gPictList, gFrameLabel, gSpeakList, gSpeak, gFrom, gTo, gLabelList, gPrintBoard
  2.  
  3. on startMovie
  4.   set the preLoadEventAbort to 0
  5.   set the idleLoadMode to 1
  6.   set gFrom to 15
  7.   set gTo to 22
  8.   set gTextCastLib to "text"
  9.   set gRollerList to [31: 11, 32: 11, 33: 11, 34: member 21 of castLib "shared", 35: member 22 of castLib "shared", 36: member 23 of castLib "shared", 37: member 24 of castLib "shared", 38: member 25 of castLib "shared", 39: member 36 of castLib "shared"]
  10.   set gLinkRollerList to [15: 332, 16: 345, 17: 358, 18: 372, 19: 387, 20: 400, 21: 415, 22: 428]
  11.   set gLabelList to value(the text of field "L01")
  12. end
  13.  
  14. on preLoadcheck
  15.   if soundBusy(1) = 1 then
  16.     exit
  17.   end if
  18.   preLoad(the frame + 60)
  19. end
  20.  
  21. on linkGo L, H
  22.   if voidp(getaProp(gLabelList, L)) = 1 then
  23.     exit
  24.   end if
  25.   puppetSprite(6, 1)
  26.   set y to getaProp(gLabelList, L)
  27.   puppetSprite(9, 1)
  28.   set the locV of sprite 9 to H
  29.   do("go" && QUOTE & y & QUOTE)
  30.   updateStage()
  31. end
  32.  
  33. on checkBoxCheck
  34.   if the hilite of member "check1" = 1 then
  35.     set the hilite of member "check2" to 0
  36.   end if
  37.   if the hilite of member "check2" = 1 then
  38.     set the hilite of member "check1" to 0
  39.   end if
  40.   if the hilite of member "check3" = 1 then
  41.     set the hilite of member "check4" to 0
  42.   end if
  43.   if the hilite of member "check4" = 1 then
  44.     set the hilite of member "check3" to 0
  45.   end if
  46. end
  47.  
  48. on ChoosePrint
  49.   if the hilite of member "check1" then
  50.     printBoard4mv300()
  51.   end if
  52.   if the hilite of member "check2" then
  53.     set gPrintBoard to member "a4mv300.pic"
  54.     printBoard()
  55.   end if
  56. end
  57.  
  58. on printBoard
  59.   cursor(4)
  60.   set doc to new(xtra("Printomatic_lite"))
  61.   if not objectp(doc) then
  62.     exit
  63.   end if
  64.   setLandscapeMode(doc, 1)
  65.   append(doc, member gPrintBoard)
  66.   cursor(1)
  67.   printPreview(doc)
  68.   if doJobSetup(doc) then
  69.     print(doc)
  70.   end if
  71.   set doc to 0
  72. end
  73.  
  74. on printBoard4mv300
  75.   cursor(4)
  76.   set doc to new(xtra("Printomatic_lite"))
  77.   if not objectp(doc) then
  78.     exit
  79.   end if
  80.   setLandscapeMode(doc, 1)
  81.   append(doc, member "a2mv1300.pic")
  82.   cursor(1)
  83.   printPreview(doc)
  84.   if doJobSetup(doc) then
  85.     print(doc)
  86.   end if
  87.   set doc to 0
  88.   cursor(4)
  89.   set doc to new(xtra("Printomatic_lite"))
  90.   if not objectp(doc) then
  91.     exit
  92.   end if
  93.   setLandscapeMode(doc, 1)
  94.   append(doc, member "a2mv2300.pic")
  95.   cursor(1)
  96.   printPreview(doc)
  97.   if doJobSetup(doc) then
  98.     print(doc)
  99.   end if
  100.   set doc to 0
  101.   cursor(4)
  102.   set doc to new(xtra("Printomatic_lite"))
  103.   if not objectp(doc) then
  104.     exit
  105.   end if
  106.   setLandscapeMode(doc, 1)
  107.   append(doc, member "a2mv3300.pic")
  108.   cursor(1)
  109.   printPreview(doc)
  110.   if doJobSetup(doc) then
  111.     print(doc)
  112.   end if
  113.   set doc to 0
  114.   cursor(4)
  115.   set doc to new(xtra("Printomatic_lite"))
  116.   if not objectp(doc) then
  117.     exit
  118.   end if
  119.   setLandscapeMode(doc, 1)
  120.   append(doc, member "a2mv4300.pic")
  121.   cursor(1)
  122.   printPreview(doc)
  123.   if doJobSetup(doc) then
  124.     print(doc)
  125.   end if
  126.   set doc to 0
  127. end
  128.  
  129. on printQuestion
  130.   cursor(4)
  131.   set doc to new(xtra("Printomatic_lite"))
  132.   if not objectp(doc) then
  133.     exit
  134.   end if
  135.   append(doc, member 1 of castLib "text")
  136.   cursor(1)
  137.   if doJobSetup(doc) then
  138.     print(doc)
  139.     set doc to 0
  140.   else
  141.     set doc to 0
  142.     exit
  143.   end if
  144.   repeat with x = 2 to 50
  145.     set doc to new(xtra("Printomatic_lite"))
  146.     if not objectp(doc) then
  147.       exit
  148.     end if
  149.     append(doc, member x of castLib "text")
  150.     print(doc)
  151.     set doc to 0
  152.   end repeat
  153. end
  154.  
  155. on nextquestion
  156.   puppetSprite(2, 1)
  157.   set randmember to member random(300) of castLib "random"
  158.   set the member of sprite 2 to randmember
  159.   updateStage()
  160. end
  161.