home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global cdPath1, cdPath2, hardPath, gSoundEnabled
- if not voidp(gSoundEnabled) then
- setupMainButtons()
- return
- end if
- set the searchPath to []
- append(the searchPath, hardPath)
- repeat with k = 1 to 2
- if k = 1 then
- set pathList to ["01_body", "02_cardio", "04_endo", "06_musc", "07_nerv", "10_skel"]
- set thePath to cdPath1
- else
- set pathList to ["03_dig", "05_immun", "08_repro", "09_resp", "11_urin"]
- set thePath to cdPath2
- end if
- append(the searchPath, thePath)
- if the platform contains "Win" then
- repeat with nextPath in pathList
- append(the searchPath, thePath & nextPath & "\")
- append(the searchPath, thePath & nextPath & "\movies\")
- end repeat
- next repeat
- end if
- repeat with nextPath in pathList
- append(the searchPath, thePath & nextPath & ":")
- append(the searchPath, thePath & nextPath & ":movies:")
- end repeat
- end repeat
- if the platform contains "Win" then
- else
- end if
- if the machineType contains "windows" then
- castFX_register("CFX-ALL-1-19970128-21102367-03183")
- else
- castFX_register("CFX-MAC-2-19971025-11182841-03264")
- end if
- castFX_init()
- set gSoundEnabled to 1
- set the soundEnabled to 1
- set the soundLevel to 7
- setupMainButtons()
- end
-