home *** CD-ROM | disk | FTP | other *** search
- on DemoOnly theSprite, TheLoc, PrevLoc
- beep()
- puppetSprite(theSprite, 1)
- set the locH of sprite theSprite to TheLoc
- updateStage()
- repeat while the mouseDown
- DemoCheck()
- end repeat
- set STIcks to the ticks
- repeat while not (the mouseDown) and ((the ticks - STIcks) < (60 * 3))
- DemoCheck()
- end repeat
- if the mouseCast <> the number of cast "demo" then
- set the locH of sprite theSprite to PrevLoc
- puppetSprite(theSprite, 0)
- updateStage()
- end if
- end
-
- on DemoCheck
- global endSection, lastFrame, cursorcast
- if the frame < label("medicin") then
- set f to (the movieTime of sprite 15 / 4) + 40
- set g to (the movieTime of sprite 15 / 4) + 9
- if f > endSection then
- set the movieRate of sprite 15 to 0
- if char 1 to 4 of lastFrame = "fall" then
- EndDance()
- else
- go(the frame)
- end if
- else
- go(g)
- end if
- end if
- end
-