home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global g_soundcast, g_decompte, g_memtime, numecran, nbecran, nomtheme, g_visite, gCurseurDoigt
- if soundBusy(1) = 0 then
- if g_decompte = 0 then
- set g_memtime to the timer
- set g_decompte to 1
- else
- if the timer >= (g_memtime + (60 * 15)) then
- set g_decompte to 0
- puppetSound("S" & nomtheme & ".aiff")
- end if
- end if
- end if
- puppetSprite(12, 1)
- if rollOver(12) then
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 12 to 38
- else
- set the castNum of sprite 12 to 25
- end if
- else
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 12 to 82
- else
- set the castNum of sprite 12 to 56
- end if
- end if
- puppetSprite(13, 1)
- if rollOver(13) then
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 13 to 39
- else
- set the castNum of sprite 13 to 26
- end if
- else
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 13 to 83
- else
- set the castNum of sprite 13 to 57
- end if
- end if
- puppetSprite(14, 1)
- if rollOver(14) then
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 14 to 40
- else
- set the castNum of sprite 14 to 27
- end if
- else
- if (nomtheme = "G") and (numecran = 0) then
- set the castNum of sprite 14 to 84
- else
- set the castNum of sprite 14 to 58
- end if
- end if
- if rollOver(12) or rollOver(13) or rollOver(14) then
- cursor(gCurseurDoigt)
- else
- cursor(-1)
- end if
- go(the frame)
- end
-
- on mouseUp
- global numecran, nbecran, g_index, g_call_param, g_exit
- cursor(-1)
- if rollOver(12) then
- puppetSprite(12, 0)
- puppetSprite(13, 0)
- puppetSprite(14, 0)
- if numecran > 0 then
- set numecran to numecran - 1
- go("theme")
- else
- puppetSound(0)
- if g_index = 1 then
- set g_exit to 0
- set g_call_param to -1
- unpuppet()
- go("sortie")
- else
- go("entree")
- end if
- end if
- end if
- if rollOver(13) then
- puppetSprite(12, 0)
- puppetSprite(13, 0)
- puppetSprite(14, 0)
- puppetSprite(3, 0)
- puppetSound(0)
- if g_index = 1 then
- set g_exit to 0
- set g_call_param to -1
- unpuppet()
- go("sortie")
- else
- go("entree")
- end if
- end if
- if rollOver(14) then
- puppetSprite(12, 0)
- puppetSprite(13, 0)
- puppetSprite(14, 0)
- if numecran < (nbecran - 1) then
- set numecran to numecran + 1
- go("theme")
- else
- puppetSound(0)
- if g_index = 1 then
- set g_exit to 0
- set g_call_param to -1
- unpuppet()
- go("sortie")
- else
- go("entree")
- end if
- end if
- end if
- end
-
- on mouseDown
- global g_visite, g_call_param, g_exit
- if g_visite = 1 then
- set g_call_param to -1
- set g_exit to 0
- unpuppet()
- go("sortie")
- end if
- end
-