home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The See Clearly Method
/
TheSeeClearlyMethod.iso
/
Media
/
stub2.dir
/
00008_Script_8
< prev
next >
Wrap
Text File
|
2002-02-15
|
564b
|
15 lines
global myFile
on EnterFrame
if objectP(myFile) then set myFile = 0 --Delete the instance if it already exists
myFile = new(xtra "fileio") -- Create an instance of FileIO
openFile(myFile, "c:\agreed.txt",1) --Open the file with read access
myVariable = readFile(myFile) --set the variable 'myVariable' to the text of the file 'info.txt'
if readFile(myFile)=VOID then --checks to see if this file exists
go to frame 2
else
go to movie "qtpc"
closeFile(myFile) -- Close the file
end if
myFile = 0 -- Dispose of the instance
end