home *** CD-ROM | disk | FTP | other *** search
/ Professor Iris' Fun Field Trip - Animal Safari / Iris.iso / pc / discover / shared.dir / 00711.ls < prev    next >
Encoding:
Text File  |  1995-06-18  |  1.2 KB  |  42 lines

  1. on copyScreenRegionMac
  2.   global copyObj, pictureFlag, gLineDrawing, gCaptPict
  3.   if objectp(copyObj) then
  4.     copyObj(mdispose)
  5.   end if
  6.   set templateLeft to the left of sprite gLineDrawing
  7.   set templateTop to the top of sprite gLineDrawing
  8.   set templateRight to the right of sprite gLineDrawing
  9.   set templateBottom to the bottom of sprite gLineDrawing
  10.   set copyObj to StageToCast(mnew, templateTop, templateLeft, templateBottom, templateRight)
  11.   set i to the castNum of sprite gCaptPict
  12.   set the picture of cast i to copyObj(mGetHandle)
  13.   set pictureFlag to 1
  14.   updateStage()
  15. end
  16.  
  17. on copyScreenRegionPC
  18.   global copyObj, pictureFlag, gLineDrawing, gCaptPict, gPCcounter
  19.   if objectp(copyObj) then
  20.     copyObj(mdispose)
  21.   end if
  22.   set copyObj to movutils(mnew)
  23.   set i to the castNum of sprite gCaptPict
  24.   set the picture of cast i to copyObj(mStageToCast, the rect of sprite gLineDrawing)
  25.   set pictureFlag to 1
  26.   updateStage()
  27. end
  28.  
  29. on copyMacOrPC
  30.   if the machineType = 256 then
  31.     copyScreenRegionPC()
  32.   else
  33.     copyScreenRegionMac()
  34.   end if
  35. end
  36.  
  37. on resetCastMember
  38.   global savePicHandle, pictureFlag, gLineDrawing
  39.   set the castNum of sprite gLineDrawing to the number of cast "PutItHere"
  40.   set pictureFlag to 0
  41. end
  42.