home *** CD-ROM | disk | FTP | other *** search
- global gTrect, gsound
-
- on buildLocList rect1, rect2, numsteps
- locList = []
- increment = (rect2 - rect1) / float(numsteps)
- pTrect = rect1
- repeat with a = 1 to numsteps
- pTrect = pTrect + increment
- append(locList, pTrect)
- end repeat
- gTrect = VOID
- return locList
- end
-
- on gSeprator
- sep = member("seperator").char[1]
- return sep
- end
-
- on thecursor x
- case x of
- #norm:
- cursor([member("norm"), member("norm mask")])
- #roll:
- cursor([member("hand"), member("hand mask")])
- end case
- end
-
- on startMovie me
- set the keyDownScript to "quit"
- repeat with a = 1 to count(the soundDeviceList)
- device = (the soundDeviceList)[a]
- if device contains "macromix" then
- put device
- the soundDevice = device
- exit repeat
- end if
- end repeat
- puppetSound(1, 1)
- puppetSound(2, 1)
- if getPref("dv.txt") = VOID then
- gsound = string(3)
- SetPref("dv.txt", string(gsound))
- else
- gsound = getPref("dv.txt")
- end if
- changesoundmode()
- end
-
- on stopMovie
- SetPref("dv.txt", string(gsound))
- gsound = VOID
- end
-
- on changesoundmode
- tvol = gsound * 36
- set the volume of sound 1 to tvol
- set the volume of sound 2 to tvol
- end
-
- on makesound channel, castname
- if integer(gsound) >= 1 then
- puppetSound(channel, castname)
- end if
- end
-