home *** CD-ROM | disk | FTP | other *** search
/ Discovering Nature in the City / LUONTOCD.iso / pc / files / toolmswe.dxr / 00001.ls next >
Encoding:
Text File  |  1996-12-16  |  1.4 KB  |  80 lines

  1. on tellPrintText
  2.   tell the stage
  3.     printText()
  4.   end tell
  5. end
  6.  
  7. on tellPrintPicture
  8.   tell the stage
  9.     printPicture()
  10.   end tell
  11. end
  12.  
  13. on tellclipBoardText
  14.   tell the stage
  15.     clipBoardText()
  16.   end tell
  17. end
  18.  
  19. on tellclipBoardPicture
  20.   tell the stage
  21.     clipBoardPicture()
  22.   end tell
  23. end
  24.  
  25. on tellshowPic
  26.   tell the stage
  27.     showPic()
  28.   end tell
  29.   forget(window "toolmiaw")
  30. end
  31.  
  32. on tellshowSound
  33.   tell the stage
  34.     showSound()
  35.   end tell
  36.   forget(window "toolmiaw")
  37. end
  38.  
  39. on miawpointer
  40.   set myCursor to [3, 4]
  41.   repeat with channel = 5 to 10
  42.     set the cursor of sprite channel to myCursor
  43.     if rollOver(channel) = 0 then
  44.       cursor(-1)
  45.     end if
  46.     if the mouseDown then
  47.       exit repeat
  48.     end if
  49.   end repeat
  50.   exit
  51.   cursor(-1)
  52. end
  53.  
  54. on miawTextButton N, s
  55.   set the puppet of sprite N to 1
  56.   set H to the locH of sprite N
  57.   set V to the locV of sprite N
  58.   set the locH of sprite N to H + 2
  59.   set the locV of sprite N to V + 2
  60.   updateStage()
  61.   repeat while the mouseDown = 1
  62.     if rollOver(N) = 1 then
  63.       set the locH of sprite N to H + 2
  64.       set the locV of sprite N to V + 2
  65.       updateStage()
  66.       next repeat
  67.     end if
  68.     set the locH of sprite N to H
  69.     set the locV of sprite N to V
  70.     updateStage()
  71.   end repeat
  72.   set the locH of sprite N to H
  73.   set the locV of sprite N to V
  74.   updateStage()
  75.   set the puppet of sprite N to 0
  76.   if rollOver(N) = 1 then
  77.     do(s)
  78.   end if
  79. end
  80.