home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / video.dxr / 00129_play frame script.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  610 b   |  25 lines

  1. on enterFrame
  2.   global gtotallength, open1
  3.   set the soundEnabled to 1
  4.   if open1 = 0 then
  5.     set the visible of sprite 3 to 1
  6.     set the movieTime of sprite 3 to 0
  7.     setTrackEnabled(sprite(3), 1, 1)
  8.     setTrackEnabled(sprite(3), 2, 1)
  9.     set the movieRate of sprite 3 to 1
  10.   end if
  11.   set open1 to 1
  12.   updateStage()
  13.   set gtotallength to trackStopTime(sprite(3), 1)
  14.   if the movieTime of sprite 3 > (gtotallength - 20) then
  15.     set the visible of sprite 3 to 0
  16.     setTrackEnabled(sprite(3), 1, 0)
  17.     setTrackEnabled(sprite(3), 2, 0)
  18.     go(the frame - 1)
  19.   end if
  20. end
  21.  
  22. on exitFrame
  23.   go(the frame)
  24. end
  25.