home *** CD-ROM | disk | FTP | other *** search
- global gten, gai, userid, userpw, userpm, userpg, jumpmoviename, jumpmode, rmname
-
- on startMovie
- set gten to 0
- set gai to 0
- initsw()
- if voidp(userid) then
- set userid to "guest"
- end if
- put 0 into field "point"
- put 0 into field "label"
- cursor([35, 36])
- end
-
- on stopMovie
- put field "addInfoText1" into field "addInfo"
- end
-
- on clear
- set the visible of sprite 7 to 1
- set the visible of sprite 8 to 1
- repeat with i = 16 to 24
- set the puppet of sprite i to 0
- end repeat
- repeat with i = 27 to 31
- set the puppet of sprite i to 0
- end repeat
- cursor([35, 36])
- end
-
- on jumpnetmovie jmode
- set jumpmoviename to rmname
- 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(jumpmoviename)
- 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
-