home *** CD-ROM | disk | FTP | other *** search
- global gdrive, gapppath, lcd, hliveplayer, glockconnect, gstaticdir
-
- on startMovie
- set movie_mode to 0
- if voidp(glockconnect) = 1 then
- set glockconnect to 0
- end if
- set ninitializeflags to 1 + 16
- set nmediaflags to 1 + 2 + 4 + 8 + 16
- if voidp(lcd) = 1 then
- set lcd to new(xtra("xlplay"))
- end if
- if voidp(lcd) <> 1 then
- set hliveplayer to lp_initialize(lcd, "Curio City", "LPLAY.INI", "Jota Takahashi", "Mitsui Knowledge Industry", "jAtmXF4nn3VBb4D95uihyxrc", ninitializeflags)
- if (voidp(hliveplayer) <> 1) and (hliveplayer <> 0) then
- if movie_mode = 1 then
- set gstaticdir to "E:\curio\static"
- else
- if movie_mode = 2 then
- set gstaticdir to "C:\My Documents\CURIOCITY\STATIC"
- else
- set gstaticdir to chars(gdrive, 1, 1) & ":\MOVIE\SHOP\STATIC"
- end if
- end if
- lp_setstaticdir(lcd, hliveplayer, gstaticdir)
- set err to lp_isconnected(lcd, hliveplayer)
- if err <> 0 then
- if movie_mode = 2 then
- set svr_addr to "127.0.0.1"
- else
- set svr_addr to "210.130.160.48"
- end if
- set err to lp_connect(lcd, hliveplayer, svr_addr, 8888, 1)
- end if
- if err = 0 then
- set glockconnect to lp_createmedia(lcd, hliveplayer, 0, -100, -100, -80, -80, "DUMMY.HTM", 0, nmediaflags)
- set err to lp_isloggedin(lcd, hliveplayer)
- if err <> 0 then
- set err to lp_login(lcd, hliveplayer, "GUEST", "GUEST", 1)
- if err = 0 then
- else
- end if
- end if
- else
- alert("LiveServerテテ静テεェナセテォツアテ邃「テ鵜テ嘉嘉嘉ャテ瓜テ嘉」テナステテ催窶ケテツオテテステB")
- end if
- else
- alert("ツ鞘コツソツ青サテ佝陳・テ榲ステδ、ツ静療邃「テゥツソテァsテツシテツエテ窶ケテテセテテ津BLiveCDテツ敕ゥツソテァsテテ敕テ暗テヲテテ佚テε嘉テ嘉テ嘉、テ邃「テォツエテテ凝ツサテツ「テツゥテ窶。テュmテテ催窶ケテテセテテ津B")
- end if
- end if
- end
-
- on stopMovie
- if (voidp(lcd) <> 1) and (voidp(hliveplayer) <> 1) and (hliveplayer <> 0) then
- if (voidp(glockconnect) <> 1) and (glockconnect <> 0) then
- lp_destroymedia(lcd, hliveplayer, glockconnect)
- end if
- set flag to lp_isloggedin(lcd, hliveplayer)
- if flag = 0 then
- set err to lp_logout(lcd, hliveplayer)
- end if
- set flag to lp_isconnected(lcd, hliveplayer)
- if flag = 0 then
- set err to lp_disconnect(lcd, hliveplayer)
- end if
- lp_terminate(lcd, hliveplayer)
- set hliveplayer to 0
- end if
- end
-