home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global imagen, pelicula, directionH1, directionV1, directionH2, directionV2, directionH3, directionV3, fundidofoto, fundidotexto
- if imagen = 0 then
- sprite(31).visible = 0
- else
- sprite(31).visible = 1
- end if
- updateStage()
- actual = the memberNum of sprite 40
- Tipo = word 1 of the name of member actual
- if word 1 of the name of member (actual + 1) = Tipo then
- sprite(33).visible = 1
- else
- sprite(33).visible = 0
- end if
- if word 1 of the name of member (actual - 1) = Tipo then
- sprite(30).visible = 1
- else
- sprite(30).visible = 0
- end if
- if member(the member of sprite 8).scrollTop > (member(the member of sprite 8).height - 150) then
- sprite(10).visible = 0
- else
- sprite(10).visible = 1
- end if
- if member(the member of sprite 8).scrollTop <= 0 then
- sprite(9).visible = 0
- else
- sprite(9).visible = 1
- end if
- if member(the member of sprite 40).name contains "video" then
- sound stop 2
- if sprite(40).currentTime > (member(the member of sprite 40).duration - 100) then
- set the rect of sprite 40 to rect(423, 51, 743, 291)
- videopause(sprite(40))
- videoseek(sprite(40), sprite(40).segmentstart + 1550)
- repeat with i = 2 to 4
- sprite(i).visible = 1
- end repeat
- puppetTransition(7, 0.5, 1, 0)
- updateStage()
- end if
- else
- if soundBusy(2) = 0 then
- sound playFile 2, "pista.wav"
- end if
- end if
- if the locH of sprite 2 > (350 - the width of sprite 2) then
- directionH1 = random(3) * -1
- end if
- if the locH of sprite 2 < 40 then
- directionH1 = random(3)
- end if
- if the locV of sprite 2 > (560 - the height of sprite 2) then
- directionV1 = random(3) * -1
- end if
- if the locV of sprite 2 < 20 then
- directionV1 = random(3)
- end if
- set the locH of sprite 2 to the locH of sprite 2 + (2 * directionH1)
- set the locV of sprite 2 to the locV of sprite 2 + (2 * directionV1)
- updateStage()
- if the locH of sprite 3 > (350 - the width of sprite 3) then
- directionH2 = random(3) * -1
- end if
- if the locH of sprite 3 < 40 then
- directionH2 = random(3)
- end if
- if the locV of sprite 3 > (560 - the height of sprite 3) then
- directionV2 = random(3) * -1
- end if
- if the locV of sprite 3 < 20 then
- directionV2 = random(3)
- end if
- set the locH of sprite 3 to the locH of sprite 3 + (2 * directionH2)
- set the locV of sprite 3 to the locV of sprite 3 + (2 * directionV2)
- updateStage()
- if the locH of sprite 4 > (350 - the width of sprite 4) then
- directionH3 = random(3) * -1
- end if
- if the locH of sprite 4 < 40 then
- directionH3 = random(3)
- end if
- if the locV of sprite 4 > (560 - the height of sprite 4) then
- directionV3 = random(3) * -1
- end if
- if the locV of sprite 4 < 20 then
- directionV3 = random(3)
- end if
- set the locH of sprite 4 to the locH of sprite 4 + (2 * directionH3)
- set the locV of sprite 4 to the locV of sprite 4 + (2 * directionV3)
- updateStage()
- if rollover(29) then
- if fundidofoto = 1 then
- set the ink of sprite 28 to 32
- set the blend of sprite 28 to 0
- sprite(28).visible = 1
- X = 0
- repeat while X < 100
- X = X + 10
- set the blend of sprite 28 to X
- repeat with i = 30 to 34
- set the blend of sprite i to X
- end repeat
- updateStage()
- end repeat
- set the blend of sprite 28 to 100
- set the ink of sprite 28 to 0
- repeat with i = 30 to 34
- set the ink of sprite i to 0
- end repeat
- updateStage()
- fundidofoto = 0
- end if
- else
- if fundidofoto = 0 then
- X = 100
- repeat while X > 40
- X = X - 10
- set the blend of sprite 28 to X
- repeat with i = 30 to 34
- set the blend of sprite i to the blend of sprite i - 5
- end repeat
- updateStage()
- end repeat
- sprite(28).visible = 0
- repeat with i = 30 to 34
- set the ink of sprite i to 32
- set the blend of sprite i to 20
- end repeat
- updateStage()
- fundidofoto = 1
- end if
- end if
- if rollover(7) then
- if fundidotexto = 1 then
- set the ink of sprite 6 to 32
- set the blend of sprite 6 to 0
- sprite(6).visible = 1
- X = 0
- repeat while X < 100
- X = X + 10
- set the blend of sprite 6 to X
- repeat with i = 9 to 11
- set the blend of sprite i to X
- end repeat
- updateStage()
- end repeat
- set the blend of sprite 6 to 100
- set the ink of sprite 6 to 0
- repeat with i = 9 to 11
- set the ink of sprite i to 0
- end repeat
- updateStage()
- fundidotexto = 0
- end if
- else
- if fundidotexto = 0 then
- X = 100
- repeat while X > 40
- X = X - 10
- set the blend of sprite 6 to X
- repeat with i = 9 to 11
- set the blend of sprite i to the blend of sprite i - 5
- end repeat
- updateStage()
- end repeat
- sprite(6).visible = 0
- repeat with i = 9 to 11
- set the ink of sprite i to 32
- set the blend of sprite i to 20
- end repeat
- updateStage()
- fundidotexto = 1
- end if
- end if
- play frame the frame
- end
-