home *** CD-ROM | disk | FTP | other *** search
- on okAction
- global gSwitchMovie, cd
- if not (the platform contains "windows") then
- set theMode to cdGetMode()
- if not voidp(theMode) and (theMode <> EMPTY) and (theMode <> "stopped") then
- alert("There is no CD in the CD-ROM drive or the drive is not ready.")
- return
- end if
- end if
- if netIsFileThere(gSwitchMovie) then
- go(1, gSwitchMovie)
- return
- else
- alert("Unable to move to the new screen. Make sure the correct CD is in the CD-ROM drive.")
- return
- end if
- end
-
- on cancelAction
- global gFullReturnMovie, cd
- if not (the platform contains "windows") then
- set theMode to cdGetMode()
- if not voidp(theMode) and (theMode <> EMPTY) and (theMode <> "stopped") then
- alert("There is no CD in the CD-ROM drive or the drive is not ready.")
- return
- end if
- end if
- if netIsFileThere(gFullReturnMovie) then
- go(1, gFullReturnMovie)
- return
- else
- alert("Unable to return to the previous screen. Make sure the correct CD is in the CD-ROM drive.")
- return
- end if
- end
-