home *** CD-ROM | disk | FTP | other *** search
- on myNoEscape
- if the keyCode = 53 then
- dontPassEvent()
- updateStage()
- go("quitting")
- end if
- end
-
- on startMovie
- global gPathName, gLastTimeRollover, gPanoFrame, nodetoenter, mouseisDown, firsthere, gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
- set the exitLock to 1
- set the keyDownScript to "myNoEscape"
- set firsthere to 1
- sound stop 1
- sound stop 2
- set CDROMdrive to chars(the moviePath, 1, 2)
- set the text of member "Pano Filename" to CDROMdrive & "\lever\levervr.mov"
- set gPathName to EMPTY
- set gLastTimeRollover to 0
- set gPanoFrame to EMPTY
- if (nodetoenter <> 1) and (nodetoenter <> 2) and (nodetoenter <> 3) then
- set nodetoenter to 1
- end if
- openXLib("QTVRW.QTC")
- set the visible of sprite 6 to 0
- set the visible of sprite 8 to 0
- set the visible of sprite 10 to 0
- set the visible of sprite 12 to 0
- set the name of castLib "English" to languagechosen
- set the fileName of castLib languagechosen to the pathName & languagechosen & ".cst"
- set currentSection to 16
- set the visible of sprite 40 to 0
- set the visible of sprite 48 to 0
- end
-
- on OpenUpMovie
- global gPanoMovieObj
- set fileObject to "i:\lever\levervr.mov"
- if objectp(fileObject) then
- set fileName to fileObject(mFileName)
- fileObject(mdispose)
- put fileName into field "Pano FileName"
- end if
- CloseNavMovie()
- ClosePanoMovie()
- set the ink of sprite 1 to 0
- set the ink of sprite 2 to 0
- updateStage()
- set the ink of sprite 1 to 1
- set the ink of sprite 2 to 1
- updateStage()
- OpenPanoMovie(the text of cast "Pano Filename", 1, 1)
- if objectp(gPanoMovieObj) then
- go("Pano CallBacks")
- put gPanoMovieObj(mGetNodeID) into field "Current Node ID"
- put "0" into field "Current Hot Spot ID"
- else
- go("Start")
- updateStage()
- alert("Can't open file:" & RETURN & RETURN & QUOTE & the text of cast "Pano Filename" & QUOTE & RETURN & RETURN & "as a panoramic movie.")
- end if
- end
-
- on stopMovie
- global gPanoCallbackFactory, gTestCallbackFactory, gLastMovie, gLastFrame
- ClosePanoMovie()
- CloseNavMovie()
- closeXLib("QTVRW.QTC")
- if objectp(gPanoCallbackFactory) then
- gPanoCallbackFactory(mdispose)
- end if
- if objectp(gTestCallbackFactory) then
- gTestCallbackFactory(mdispose)
- end if
- set gLastMovie to the movieName
- set gLastFrame to the frame
- puppetSprite(41, 0)
- puppetSprite(42, 0)
- puppetSprite(43, 0)
- puppetSprite(44, 0)
- puppetSprite(45, 0)
- puppetSprite(46, 0)
- puppetSprite(48, 0)
- puppetSprite(12, 0)
- puppetSprite(13, 0)
- puppetSprite(14, 0)
- puppetSprite(15, 0)
- end
-
- factory SampleCallbacks
- method SampleMouseOverHandler
- global gPanoMovieObj
- put "Mouse over panoramic movie"
- if objectp(gPanoMovieObj) then
- end if
-
- method SampleRolloverHandler pHotSpotID
- put pHotSpotID into field "Current Hot Spot ID"
-
- method SampleMouseDownHandler
- global gPanoMovieObj
- put "Mouse down during mMouseOver call"
- if objectp(gPanoMovieObj) then
- gPanoMovieObj(mPassMouseDown)
- end if
-
- method SamplePanZoomStartHandler
- put "About to pan or zoom in panoramic movie"
-
- method SampleMouseStillDownHandler
- global gPanoMovieObj
- put "Enter mouse still down from panoramic movie"
- if objectp(gPanoMovieObj) then
- end if
- put "Leave mouse still down from panoramic movie"
-
- method SampleNodeLeaveHandler pToNode
- put "Jumping to node " & pToNode & " in panoramic movie"
-