home *** CD-ROM | disk | FTP | other *** search
- on mouseWithin me
- global gNomeFile, gID, gLineaSelezionata
- the itemDelimiter = "-"
- linea = the mouseLine
- if the text of field "risultato ricerca" = "Spiacente, la parola cercata non è stata trovata." then
- exit
- end if
- if the text of field "risultato ricerca" = "Inserire una parola di almeno tre lettere." then
- exit
- end if
- tmp = the member of sprite the currentSpriteNum
- if line linea of field tmp = EMPTY then
- set the textStyle of line gLineaSelezionata of field tmp to "plain"
- set the member of sprite 4 to member("dummy")
- gLineaSelezionata = linea
- cursor(-1)
- exit
- end if
- if linea <> gLineaSelezionata then
- set the textStyle of line gLineaSelezionata of field tmp to "plain"
- gLineaSelezionata = linea
- set the textStyle of line gLineaSelezionata of field tmp to "underline"
- end if
- dati = line linea of field "risultato ricerca"
- x = the number of chars in dati
- if x < 3 then
- exit
- end if
- cursor(280)
- titolo = item 1 of dati
- n = the number of chars in titolo
- delete char n of titolo
- the itemDelimiter = "#"
- repeat with i = 1 to the number of lines in field "titolo#nomefile"
- linea2 = line i of field "titolo#nomefile"
- gNomeFile = item 1 of linea2
- if gNomeFile = titolo then
- gNomeFile = item 2 of linea2
- gID = item 3 of linea2
- gID = integer(gID + 0)
- set the member of sprite 4 to member(gNomeFile)
- updateStage()
- exit repeat
- end if
- end repeat
- updateStage()
- end
-
- on mouseDown me
- global gInsolite, gEtude
- gInsolite = 0
- gEtude = 0
- end
-
- on mouseUp me
- global gNomeFile, gQuadro, gLineaSelezionata, gElencoVisualizzato, gWrongAccess, gFrame, gMovie, gOrigineElenco
- gFrame = the frame
- tmp = the clickOn
- elenco = the member of sprite tmp
- linea = the mouseLine
- if line linea of field elenco = EMPTY then
- set the member of sprite 4 to member("dummy")
- cursor(-1)
- exit
- end if
- if the text of field "risultato ricerca" = "Spiacente, la parola cercata non è stata trovata." then
- exit
- end if
- if the text of field "risultato ricerca" = "Inserire una parola di almeno tre lettere." then
- exit
- end if
- dati = line linea of field "risultato ricerca"
- x = the number of chars in dati
- if x < 3 then
- exit
- end if
- gElencoVisualizzato = the member of sprite tmp
- gLineaSelezionata = the mouseLine
- Ntema = char 1 of gNomeFile
- if charToNum(Ntema) > 65 then
- exit
- end if
- gWrongAccess = 1
- gMovie = "Theme" & Ntema
- gQuadro = char 1 to 5 of gNomeFile
- gOrigineElenco = "ricerca"
- aggiungiBACKCamuffo()
- go("scheda", gMovie)
- end
-
- on mouseLeave
- global gLineaSelezionata
- gLineaSelezionata = 0
- cursor(-1)
- tmp = the member of sprite the currentSpriteNum
- set the textStyle of field tmp to "plain"
- set the member of sprite 4 to member("dummy")
- updateStage()
- end
-