home *** CD-ROM | disk | FTP | other *** search
- -- Hi there all you Director freaks...
- -- The following scripts represent around 4 years of development & refinement
- -- of our CDROM Magazine concept. However, as we're departing this compatibility nightmare
- -- land of CDROM for the bandwidth nightmare of the Web, we're probbly not going to be able use
- -- this code any more. So help yourselves. Sorry there's not more comments, and some is messy
- -- but it evolved under tight production deadlines and the influence of various substances.
- -- A special thanks to Dalya Ehrman, Mark Hammer, Tony Cruz, John Lounsbery, Damien Morton,
- -- Norman Douglas and Martine Moses for the elegant coding, and to Jamie Levy, 2chord,
- -- Antenna, the writers of the bezier algorithm and the punch-out game for the inspiration...
- -- And of course my co-founder & friend, Jason Pearson, and our genius editor, Dale Hrabi.
- --
- -- Now get out there and make something. See you on the Web - www.blender.com.
- -- David Cherry 5/20/97
- --
- -- PS. Keep in mind that all the art/music/video on this disk etc is licenced by us for Blender.
- -- If you rip it off & publish it, hell, we'll even help the copyright holders hunt you down.
-
- global gOpSys -- the local operating system
-
-
- --PROCEDURES
-
- on SPEAK
- set the movieTime of sprite 40 to 0
- set the movieRate of sprite 40 to 1.0
- end
-
- --*************************************************************************--
-
- on checkKey
- if (the commandDown) and ((the key = "q") or (the key = "."))then
- endMOVIE
- end if
- end checkKey
-
- --*************************************************************************--
-
- on switchVideo x
- global cVID
- if not the paramCount then set x = 0
- set cVID = the castnum of sprite 40
- if cVID > 0 then
- if the castType of cast cVID = #digitalVideo then
- set the movieRate of sprite 40 to x
- end if
- end if
- end switchVideo
-
- --*************************************************************************--
-
- on CLEANUP
- global PSOUND
- if PSOUND then
- puppetSound PSOUND, 0
- set PSOUND = 0
- end if
- if the paramCount then unPuppetVisPlus param(1)
- else unPuppetVisPlus
- switchVideo
- checkMem
- end
-
- --*************************************************************************--
-
- on checkMem
- global gMinimumRAM
- if (the freeBlock/1024) < gMinimumRAM then unLoad
- end checkMem
-
- --*************************************************************************--
-
- on SETV x
- global VOLUME
- set VOLUME = x
- set the soundlevel to x
- end
-
- --*************************************************************************--
-
- on unPuppetVisPlus myList
- if not(the paramCount) then
- repeat with n = 48 down to 1
- puppetSprite n, 0
- set the visible of sprite n to 1
- end repeat
- else
- if getAt(myList, 1) < 0 then
- --negative values ie unpuppet everything but these
- repeat with n = 1 to 48
- if not getPos(myList, -n) then
- puppetSprite n, 0
- set the visible of sprite n to 1
- end if
- end repeat
- else
- repeat with n in myList --positive values
- puppetSprite n, 0
- set the visible of sprite n to 1
- end repeat
- end if
- end if
- end
- --*************************************************************************--
-