home *** CD-ROM | disk | FTP | other *** search
- global greslist, grestmp, gbarlist, gscoretop, gscoreend, gcnt, gflg, glife, gten, gspeed, userid, userpw, userpg, userpm, jumpmoviename, jumpmode
-
- on startMovie
- resetglobal()
- if voidp(userid) then
- set userid to "guest"
- end if
- put 0 into field "point"
- put 0 into field "label"
- cursor([71, 72])
- end
-
- on stopMovie
- put field "addinfoText1" into field "addInfo"
- end
-
- on resetglobal
- set greslist to []
- set gbarlist to [0, 0, 0, 0, 0, 0]
- set gscoretop to 35
- set gscoreend to 40
- set gcnt to 0
- set gflg to 0
- set glife to 3
- set gten to 0
- set gspeed to 0
- initsw()
- end
-
- on jumpnetmovie mname, jmode
- set jumpmoviename to mname
- set jumpmode to jmode
- if userid = "guest" then
- set jumpmode to 1
- end if
- repeat with s = 1 to 48
- set the puppet of sprite s to 0
- end repeat
- if jumpmode then
- gotonetmovie(mname)
- else
- setuserpm()
- end if
- go("exit")
- end
-
- on setuserpm
- getnettext("http://202.224.191.2/cgi-bin/EcOpe.cgi?name=" & userid & "&password=" & userpw & "&amount=" & userpg & "¶meter=" & userpm)
- end
-
- on checknetresult
- if jumpmode then
- exit
- end if
- if netdone() then
- set nresult to nettextresult()
- if nresult starts "<" then
- alert(deletetag(nresult))
- go("1")
- abort()
- else
- if nresult starts "E000" then
- if line 1 of nresult = "E0000" then
- set rtext to "Error : Server System Error"
- else
- if line 1 of nresult = "E0001" then
- set rtext to "Error : " & userid & "The name is not registered."
- else
- if line 1 of nresult = "E0002" then
- set rtext to "Error : The password is wrong."
- else
- if line 1 of nresult = "E0003" then
- set rtext to "Error : The parameter's form is wrong."
- else
- if line 1 of nresult = "E0003" then
- set rtext to "Error : Your balance is short - you cannot make a withdrawal."
- end if
- end if
- end if
- end if
- end if
- alert(rtext)
- go("1")
- abort()
- else
- set jumpmode to 1
- gotonetmovie(jumpmoviename)
- end if
- end if
- end if
- end
-
- on deletetag ctext
- repeat while ctext contains "<"
- set fchar to offset("<", ctext)
- set echar to offset(">", ctext)
- delete char fchar to echar of ctext
- end repeat
- return ctext
- end
-