home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 April / macformat-049.iso / mac / Demos / Print Artist Demo / PA12-Mac.Dxr / 00130.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  633 b   |  28 lines

  1. on exitFrame
  2.   global loadNext, whatSpeed, whatFactor, frameLoop, waitTime1
  3.   if frameLoop = 0 then
  4.     set whatSpeed to whatSpeed + waitTime1
  5.   end if
  6.   if loadNext = 0 then
  7.     resetTimer()
  8.     go(#next)
  9.   else
  10.     if loadNext = 1 then
  11.       if frameLoop = 0 then
  12.         unLoad(label("labels") + 68, label("scene2") + 7)
  13.       end if
  14.       if frameLoop = 0 then
  15.         preLoad(label("s2turn1"), label("s2turn1") + 6)
  16.       end if
  17.       if the timer < whatSpeed then
  18.         set frameLoop to 1
  19.         go(the frame)
  20.       else
  21.         set frameLoop to 0
  22.         resetTimer()
  23.         go(#next)
  24.       end if
  25.     end if
  26.   end if
  27. end
  28.