home *** CD-ROM | disk | FTP | other *** search
- global line_select, line_select2, passe, forcolor, forroll, forselect, theme, soustheme1, soustheme2, forchoix, rollchoix, selectchoix, forchoix2, rollchoix2, selectchoix2, dossier, Nivel_dos, Le_media, capture
-
- on mouseEnter
- if passe <> the currentSpriteNum then
- if member(the memberNum of sprite the currentSpriteNum).type = #text then
- member(the memberNum of sprite the currentSpriteNum).foreColor = forroll
- else
- sprite(41).visible = 1
- end if
- cursor(280)
- else
- cursor(-1)
- end if
- end
-
- on mouseLeave
- cursor(-1)
- if the currentSpriteNum <> passe then
- if member(the memberNum of sprite the currentSpriteNum).type = #text then
- member(the memberNum of sprite the currentSpriteNum).foreColor = forcolor
- else
- sprite(41).visible = 0
- end if
- end if
- end
-
- on mouseUp
- line_select = VOID
- line_select2 = VOID
- cursor(-1)
- if soundBusy(3) then
- sound(3).stop()
- end if
- if the currentSpriteNum <> passe then
- if passe <> 0 then
- if member(the memberNum of sprite passe).type = #text then
- member(the memberNum of sprite passe).foreColor = forcolor
- else
- sprite(41).visible = 0
- end if
- end if
- passe = the currentSpriteNum
- if member(the memberNum of sprite the currentSpriteNum).type = #text then
- member(the memberNum of sprite the currentSpriteNum).foreColor = forselect
- end if
- theme = EMPTY & member(dossier, "utile").line[the currentSpriteNum - 9]
- choixTeme = dossier & " " & member(dossier, "utile").line[the currentSpriteNum - 9]
- soustheme1 = EMPTY
- soustheme2 = EMPTY
- set the text of field "total" to EMPTY
- Nivel_dos = member(dossier & "_NbNivo", "utile").line[the currentSpriteNum - 9]
- sprite(43).visible = 0
- case Nivel_dos of
- "0":
- repeat with i = 21 to 23
- sprite(i).visible = 0
- end repeat
- Le_media = testMedia(dossier & " " & theme)
- case Le_media of
- "logiciel":
- capture = theme
- member("install").text = "Installa"
- Un_champs(choixTeme & "_NOSCN")
- "Image":
- sprite(22).visible = 0
- member("install").text = "Copia..."
- go("images")
- "Gif":
- sprite(22).visible = 0
- member("install").text = "Copia"
- go("gif")
- "Video":
- member("install").text = EMPTY
- capture = theme
- extension = list(".mpg", ".mpeg", ".avi")
- Nbre_video = cherche_media(dossier, theme, 1, extension)
- if Nbre_video <> "plusieurs_テゥlテゥmts" then
- capture = Nbre_video
- go("video")
- else
- Un_champs(choixTeme & "_NOSCN")
- end if
- "Quicktime":
- member("install").text = EMPTY
- capture = theme
- extension = list(".mov", ".qt")
- Nbre_video = cherche_media(dossier, theme, 1, extension)
- if theme = "Bandes-Annonces" then
- sprite(43).visible = 1
- end if
- if Nbre_video <> "plusieurs_テゥlテゥmts" then
- capture = Nbre_video
- go("mov")
- else
- Un_champs(choixTeme & "_NOSCN")
- end if
- "son":
- member("install").text = "Copia"
- capture = theme
- extension = list(".wav", ".aif", ".mp3")
- Nbre_son = cherche_media(dossier, theme, 1, extension)
- if Nbre_son <> "plusieurs_テゥlテゥmts" then
- go("son")
- else
- Un_champs(choixTeme & "_NOSCN")
- end if
- "police":
- capture = theme
- member("install").text = "Copia"
- Un_champs(choixTeme & "_NOSCN")
- end case
- "1":
- if theme = "Samples et Musique" then
- Deux_champs(choixTeme & "_SCN")
- else
- Un_champs(choixTeme & "_SCN")
- end if
- otherwise:
- Deux_champs(choixTeme & "_SCN")
- end case
- end if
- end
-