home *** CD-ROM | disk | FTP | other *** search
- on prepareMovie
- dxRegister(111340792)
- RegisterDirectEmail(161659558)
- dcRegister(126904465)
- dosRegister(90034659)
- repeat with i = 70 to 75
- sprite(i).visible = 0
- end repeat
- end
-
- on startMovie
- global gMovie, gMaxPict, gListaPict, gTrascina, gTutorial
- gMaxPict = the number of castMembers of castLib "pict"
- gTrascina = 0
- gMovie = "gadgets"
- gListaPict = [5, 4, 3, 2, 1, #d, #d, #d, #d]
- gTutorial = "Tgadget"
- end
-
- on posizionaimmagini
- global gListaPict, gMaxPict
- repeat with i = 1 to 9
- tmp = getAt(gListaPict, i)
- if tmp <> #d then
- set the member of sprite (19 + i) to member(tmp, "pict")
- next repeat
- end if
- set the member of sprite (19 + i) to member("dummylittle", "internal")
- end repeat
- centrale = getAt(gListaPict, 5)
- if centrale = 1 then
- sprite(3).member = member("frsx_f3")
- cursor(-1)
- else
- if centrale = gMaxPict then
- sprite(4).member = member("frdx_f3")
- cursor(-1)
- else
- sprite(3).member = member("frsx")
- sprite(4).member = member("frdx")
- end if
- end if
- tmp = the member of sprite 24
- nome = member(tmp).name
- the itemDelimiter = "#"
- repeat with i = 1 to the number of lines in field "titolo#nomefile"
- dati = line i of field "titolo#nomefile"
- nomefile = item 2 of dati
- if nomefile = nome then
- titolo = item 1 of dati
- set the text of field "dida" to titolo
- exit repeat
- end if
- end repeat
- end
-
- on scrolla direz
- global gListaPict, gMaxPict
- case direz of
- 1:
- tmp = getAt(gListaPict, 5)
- if tmp = 1 then
- exit
- end if
- tmp = getAt(gListaPict, 1)
- if tmp = #d then
- deleteAt(gListaPict, 1)
- tmp = getAt(gListaPict, 8)
- nuovo = tmp - 1
- if nuovo < 1 then
- nuovo = #d
- end if
- addAt(gListaPict, 9, nuovo)
- else
- repeat with i = 1 to 9
- tmp = getAt(gListaPict, i)
- if tmp = #d then
- exit repeat
- end if
- nuovo = tmp - 1
- if nuovo < 1 then
- nuovo = #d
- end if
- setAt(gListaPict, i, nuovo)
- end repeat
- end if
- (-1):
- tmp = getAt(gListaPict, 5)
- if tmp = gMaxPict then
- exit
- end if
- tmp = getAt(gListaPict, 9)
- if tmp = #d then
- deleteAt(gListaPict, 9)
- tmp = getAt(gListaPict, 1)
- nuovo = tmp + 1
- if nuovo > gMaxPict then
- nuovo = #d
- end if
- addAt(gListaPict, 1, nuovo)
- else
- repeat with i = 9 down to 1
- tmp = getAt(gListaPict, i)
- if tmp = #d then
- exit repeat
- end if
- nuovo = tmp + 1
- if nuovo > gMaxPict then
- nuovo = #d
- end if
- setAt(gListaPict, i, nuovo)
- end repeat
- end if
- end case
- posizionaimmagini()
- end
-
- on scrollacitazioni pDirezione
- global gMaxCitazioni, gNumCitazione
- gNumCitazione = gNumCitazione + pDirezione
- sprite(2).member = member(gNumCitazione, "citazioni")
- member("numerocitazione").text = gNumCitazione && "di" && gMaxCitazioni
- if gNumCitazione = 1 then
- sprite(7).blend = 50
- else
- if gNumCitazione = gMaxCitazioni then
- sprite(6).blend = 50
- else
- sprite(7).blend = 100
- sprite(6).blend = 100
- end if
- end if
- end
-
- on stopMovie
- global gListaPict, gLineaSel, gPict, gMaxPict, gTrascina, gAnn, gLinea, Connessione
- gListaPict = 0
- gLineaSel = 0
- gPict = 0
- gMaxPict = 0
- gTrascina = 0
- gAnn = 0
- gLinea = 0
- SCARICAMEM()
- end
-
- on cancellaLinee
- if the key = RETURN then
- repeat with i = 2 to the number of lines in field "nome"
- delete line i of field "nome"
- end repeat
- repeat with i = 2 to the number of lines in field "cognome"
- delete line i of field "cognome"
- end repeat
- repeat with i = 2 to the number of lines in field "via"
- delete line i of field "via"
- end repeat
- repeat with i = 2 to the number of lines in field "citta"
- delete line i of field "citta"
- end repeat
- repeat with i = 2 to the number of lines in field "cap"
- delete line i of field "cap"
- end repeat
- repeat with i = 2 to the number of lines in field "telefono"
- delete line i of field "telefono"
- end repeat
- repeat with i = 2 to the number of lines in field "e-mail"
- delete line i of field "e-mail"
- end repeat
- repeat with i = 2 to the number of lines in field "nomemittente"
- delete line i of field "nomemittente"
- end repeat
- repeat with i = 2 to the number of lines in field "to"
- delete line i of field "to"
- end repeat
- end if
- end
-