home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- new(script "BrowserClass", "htmlsource")
- set the visible of sprite 6 to 0
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 0
- set the visible of sprite 9 to 0
- set the visible of sprite 16 to 0
- set the visible of sprite 17 to 0
- set the visible of sprite 18 to 0
- set the visible of sprite 19 to 0
- set the visible of sprite 20 to 0
- set the visible of sprite 21 to 0
- set gOSDir to getOSDirectory()
- put gOSDir & "Preferences:" into field "OSPath"
- put gOSDir & "Preferences:Browser" into field "ThePath"
- loadBrowser()
- end
-
- on loadBrowser
- global myfile
- set myfile to new(xtra("fileio"))
- set finalPath to field "OSPath"
- openFile(myfile, finalPath & "Browser", 1)
- set TheWeb to readLine(myfile)
- put TheWeb into field "browserLoc"
- closeFile(myfile)
- set myfile to 0
- end
-