home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boot Disc 1
/
boot-disc-1996-08.iso
/
bootcd.dir
/
00256_Script_256
< prev
next >
Wrap
Text File
|
1996-07-02
|
774b
|
33 lines
global gURL
on mouseUp
set gURL = the text of cast "URL"
set the visible of sprite 5 = FALSE
set the visible of sprite 10 = TRUE
updatestage
openxlib "http"
--download the homepage at www.somewhere.com to local file "tmp.html"
--note that the "http://" is omitted in the URL
set httpXObj to http(mNew)
if not objectP(httpXObj) then
put "Error initializing the HTTP XObject"
end if
put httpXObj(mGet1_0, gURL, the pathname & "tmp.htm", 1, 2)
httpXObj(mDispose)
closexlib "http"
readFile(the pathname & "tmp.htm")
set the visible of sprite 8 = FALSE
set the visible of sprite 7 = TRUE
set the visible of sprite 5 = TRUE
set the visible of sprite 10 = FALSE
updateStage
end