home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / faewaug.dxr / 00115_FAEDuringPreview.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  823 b   |  32 lines

  1. on FAEDuringPreview
  2.   global FAEPMouseDown, FAEPreviewCounter
  3.   repeat with d = 10 to 12
  4.     if rollOver(d) then
  5.       cursor(283)
  6.       if the mouseDown and (FAEPMouseDown = 0) then
  7.         set FAEPreviewCounter to 1 + FAEPreviewCounter
  8.         if FAEPreviewCounter < 5 then
  9.           set FAEPMouseDown to 1
  10.           repeat with t = 11 to 12
  11.             set the castNum of sprite t to the castNum of sprite t + 1
  12.           end repeat
  13.           updateStage()
  14.         else
  15.           exit repeat
  16.         end if
  17.       end if
  18.       if the mouseUp then
  19.         set FAEPMouseDown to 0
  20.       end if
  21.     end if
  22.   end repeat
  23.   if not rollOver(10) and not rollOver(11) and not rollOver(12) then
  24.     cursor(-1)
  25.   end if
  26.   if FAEPreviewCounter = 5 then
  27.     set FAEPreviewCounter to 0
  28.     cursor(-1)
  29.     FAELeavePreview()
  30.   end if
  31. end
  32.