home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LAUNCH 7
/
LAUNCH.BIN
/
pc
/
cypher
/
1400.dir
/
00027_Script_27
< prev
next >
Wrap
Text File
|
1996-04-15
|
3KB
|
167 lines
on startMovie
global mainVolume, dossierSwitch, gFileToSave, opensafe
puppetSound 0
sound close 1
sound close 2
set the volume of sound 1 to 255
set the volume of sound 2 to 255
set the soundLevel to mainVolume
put "cy1400-1.txt" into gFileToSave
DisplayDossierIcon 20
puppetSprite 12,TRUE
set the visible of sprite 12 to FALSE
puppetSprite 12,FALSE
if opensafe = 1 then
go to "open safe"
end if
end
on stopMovie
set the volume of sound 1 to 255
set the volume of sound 2 to 255
puppetSound 0
sound close 1
sound close 2
end
on DisplayDossierIcon channel
global dossierSwitch
puppetSprite channel,TRUE
if DossierSwitch then
set the visible of sprite channel to TRUE
else
set the visible of sprite channel to FALSE
end if
puppetSprite channel,FALSE
end
on PageTurnLeft
puppetSound "pageturn"
puppetTransition 2, 0, 6, TRUE
go to marker(1)
end
on PageTurnRight
puppetSound "pageturn"
puppetTransition 1, 0, 6, TRUE
go to marker(-1)
end
on ReadFile fName
global gFilename, gStream, gText
put fName into gFilename
if objectP(gStream) then
gStream(mDispose)
end if
if (the machineType = 256) then
openXLib "fileIO"
end if
put fileIO(mNew,"read",gFilename) into gStream
if objectP(gStream) then
put gStream(mReadFile) into gText
put gText
gStream(mDispose)
end if
if (the machineType = 256) then
closeXLib "fileIO"
end if
end
on WriteFile fName
global gFilename, gStream, gText
put fName into gFilename
if objectP(gStream) then
gStream(mDispose)
end if
if (the machineType = 256) then
openXLib "fileIO"
end if
put fileIO(mNew,"write",gFilename) into gStream
if objectP(gStream) then
gStream(mWriteString, gText)
gStream(mDispose)
end if
if (the machineType = 256) then
closeXLib "fileIO"
end if
end
on QueryReadFile fName
global gFilename, gStream, gText
put fName into gFilename
if objectP(gStream) then
gStream(mDispose)
end if
if (the machineType =256) then
openXLib "fileIO"
end if
put fileIO(mNew,"?read",gFilename) into gStream
if objectP(gStream) then
put gStream(mReadFile) into gText
gStream(mDispose)
end if
if (the machineType = 256) then
closeXLib "fileIO"
end if
end
on QueryWriteFile fName
global gFilename, gStream, gText
put fName into gFilename
if objectP(gStream) then
gStream(mDispose)
end if
if (the machineType = 256) then
openXLib "fileIO"
end if
put fileIO(mNew,"?write",gFilename) into gStream
if objectP(gStream) then
gStream(mWriteString, gText)
gStream(mDispose)
end if
if (the machineType = 256) then
closeXLib "fileIO"
end if
end
on MoveFile fName
global gText
put the pathname & fName
ReadFile the pathname & fName
put gText
QueryWriteFile fName
end