home *** CD-ROM | disk | FTP | other *** search
- global imporjpg, total_teme, theme, soustheme1, soustheme2, n, dossier
-
- on mouseEnter me
- sprite(the currentSpriteNum).blend = 50
- cursor(280)
- end
-
- on mouseLeave me
- sprite(the currentSpriteNum).blend = 100
- end
-
- on mouseUp me
- num_sprite = 5
- num_member = 45
- if imporjpg < total_teme then
- imporjpg = imporjpg + 1
- if soustheme2 = EMPTY then
- n = getNthFileNameInFolder(the moviePath & dossier & "\" & theme & "\" & soustheme1, imporjpg)
- else
- if soustheme1 = EMPTY then
- n = getNthFileNameInFolder(the moviePath & dossier & "\" & theme & "\" & soustheme2, imporjpg)
- else
- n = getNthFileNameInFolder(the moviePath & dossier & "\" & theme & "\" & soustheme1 & "\" & soustheme2, imporjpg)
- end if
- end if
- if (n contains ".jpg") or (n contains ".bmp") then
- sprite(num_sprite).visible = 0
- if soustheme2 = EMPTY then
- importFileInto(member(num_member, 1), the moviePath & dossier & "\" & theme & "\" & soustheme1 & "\" & n)
- else
- if soustheme1 = EMPTY then
- importFileInto(member(num_member, 1), the moviePath & dossier & "\" & theme & "\" & soustheme2 & "\" & n)
- else
- importFileInto(member(num_member, 1), the moviePath & dossier & "\" & theme & "\" & soustheme1 & "\" & soustheme2 & "\" & n)
- end if
- end if
- set the text of field "total" to imporjpg & "/" & total_teme
- resize(num_sprite, num_member, 196, 192)
- member(num_member).centerRegPoint = 1
- sprite(num_sprite).visible = 1
- end if
- end if
- end
-