home *** CD-ROM | disk | FTP | other *** search
- on SetQT
- global endSection, NextFrame, CurFrame, lastFrame
- set CurFrame to NextFrame
- set the movieTime of sprite 15 to (marker(NextFrame) - 10) * 4
- set the movieRate of sprite 15 to 1
- go(NextFrame)
- MyPlaySound(NextFrame)
- updateStage()
- set lastFrame to NextFrame
- set NextFrame to EMPTY
- set endSection to marker(1) - 1
- end
-
- on EndDance
- global NextFrame, endSection, lastFrame
- if NextFrame = EMPTY then
- if char 1 to 4 of lastFrame = "fall" then
- set tmp to random(3)
- set NextFrame to "fall" & tmp
- else
- set NextFrame to lastFrame
- end if
- end if
- SetQT()
- end
-
- on BodyRollover
- repeat with i = 18 to 26
- if rollOver(i) then
- set name to the name of cast the castNum of sprite i
- set the itemDelimiter to "."
- set name to item 1 of name
- set the itemDelimiter to ","
- set nameA to name & ".down"
- set the castNum of sprite i to the number of cast nameA
- updateStage()
- repeat while rollOver(i) and not (the mouseDown)
- CheckQT()
- updateStage()
- end repeat
- set nameB to name & ".up"
- set the castNum of sprite i to the number of cast nameB
- exit repeat
- end if
- end repeat
- end
-
- on ButtonClick
- set me to the clickOn
- repeat with i = 18 to 21
- set name to the name of cast the castNum of sprite i
- set the itemDelimiter to "."
- set name to item 1 of name
- set the itemDelimiter to ","
- if i = me then
- set name to name & ".off"
- end if
- put name
- set the castNum of sprite i to the number of cast name
- end repeat
- end
-
- on ButtonsUp
- repeat with i = 21 down to 18
- set name to the name of cast the castNum of sprite i
- set the itemDelimiter to "."
- set name to item 1 of name
- set the itemDelimiter to ","
- set name to name & ".up"
- set the castNum of sprite i to the number of cast name
- end repeat
- end
-
- on ButtonsDown a, b, c
- global NextFrame
- set xx to paramCount()
- repeat with j = 1 to xx
- set i to param(j)
- set name to the name of cast the castNum of sprite i
- set the itemDelimiter to "."
- set name to item 1 of name
- set the itemDelimiter to ","
- set name to name & ".off"
- set the castNum of sprite i to the number of cast name
- end repeat
- end
-
- on Buttons var
- global endSection
- if the paramCount = 0 then
- set theClick to the clickOn
- else
- set theClick to var
- end if
- set temp to the castNum of sprite theClick
- set the castNum of sprite theClick to temp + 1
- updateStage()
- set STIcks to the ticks
- repeat while (the ticks - STIcks) < 10
- CheckQT()
- end repeat
- set the castNum of sprite theClick to temp
- updateStage()
- end
-
- on NamesOff
- puppetSprite(14, 0)
- repeat with i = 35 to 47
- set the locH of sprite i to 1000
- puppetSprite(i, 0)
- end repeat
- end
-