home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gMovie, gTutorial
- gMovie = "credits"
- member("Credits").scrollTop = 1
- gTutorial = "Tmain"
- end
-
- on stopMovie
- global Connessione
- Connessione = dcGetDefaultInternetConnection()
- status = dcGetConnectionStatus(Connessione)
- if status = 100 then
- pippo = dosMessageBox("La connessione è ancora attiva." & RETURN & "Desideri chiuderla?", "AVVISO", "Yes No", "Warning", "Yes")
- if pippo = "yes" then
- disconnessione()
- end if
- end if
- end
-
- on disconnessione
- global Connessione
- status = dcGetConnectionStatus(Connessione)
- if status = 100 then
- put "Disconnessione in corso da" && Connessione & "." into field "Status"
- cursor(4)
- dcHangUp(Connessione)
- if the result = 0 then
- put "Errore: " & dcGetLastErrorMessage() into field "Status"
- end if
- end if
- cursor(-1)
- put EMPTY into field "Status"
- end
-