home *** CD-ROM | disk | FTP | other *** search
- global gOpSys
-
- on finishmovie
- global CONTROLWINDOW, CONTROLWINDOW2, gOpSys
- set the modal of window "CONTROL.DIR" to 0
- set the modal of window "CONTROLS.DIR" to 0
- set the modal of window "MENU.DIR" to 0
- set the modal of window "HELP.DIR" to 0
- if objectp(CONTROLWINDOW) then
- forget(CONTROLWINDOW)
- end if
- if objectp(CONTROLWINDOW2) then
- forget(CONTROLWINDOW2)
- end if
- end
-
- on writeFile
- global trackList, CDDrive
- set volName to "2.5"
- if the machineType = 256 then
- openXLib("FileIo")
- end if
- set prefsPath to findPath()
- set dataString to EMPTY
- repeat with x in trackList
- set dataString to dataString & x & TAB
- end repeat
- if the machineType = 256 then
- if objectp(factory("fileio")) then
- set writeObj to fileio(mnew, "append", prefsPath & "Blendprf")
- writeObj(mWriteString, volName & TAB & dataString & RETURN)
- if objectp(writeObj) then
- writeObj(mdispose)
- end if
- if the machineType = 256 then
- closeXLib("FileIo")
- end if
- end if
- end if
- end
-
- on findPath
- global MX, CDDrive
- if gOpSys = #WIN then
- openXLib("MISC_X")
- else
- if gOpSys = #MAC then
- openXLib(CDDrive & "FILES:MISC_X XObj")
- end if
- end if
- if not objectp(MX) then
- set MX to misc_x(mnew)
- end if
- if the machineType = 256 then
- set prefsPath to MX(mWindowsDirectory)
- else
- set prefsPath to MX(mPrefsFolder)
- end if
- return prefsPath
- if objectp(MX) then
- MX(mdispose)
- end if
- if the machineType = 256 then
- closeXLib("MISC_X")
- else
- closeXLib(CDDrive & "FILES:MISC_X XObj")
- end if
- end
-