home *** CD-ROM | disk | FTP | other *** search
- global Duracion, botonRew, botonAdv
-
- on enterFrame
- cursor([cast "DEDO", cast "DEDOM"])
- if the mouseH < (65 + 23) then
- puppetSprite(10, 1)
- set the locH of sprite 10 to 65 + 23
- else
- if the mouseH > (530 + 23) then
- puppetSprite(10, 1)
- set the locH of sprite 10 to 530 + 23
- else
- set the locH of sprite 10 to the mouseH
- end if
- end if
- set eltiempo to (the locH of sprite 10 - (65 + 23)) * 1.0 * Duracion / 465
- ActualizaContador()
- updateStage()
- if eltiempo > 0 then
- puppetSprite(3, 0)
- activar(botonRew)
- else
- set the movieTime of sprite 20 to 0
- end if
- if eltiempo < Duracion then
- puppetSprite(7, 0)
- activar(botonAdv)
- else
- set the movieTime of sprite 20 to Duracion
- end if
- if (eltiempo > 0) and (eltiempo < Duracion) then
- set the movieTime of sprite 20 to eltiempo
- end if
- end
-
- on exitFrame
- if not (the stillDown) then
- mouseUp()
- else
- go(the frame)
- end if
- end
-
- on mouseUp
- global Duracion
- cursor(0)
- puppetSprite(10, 1)
- set the castNum of sprite 10 to member "Slide1a" of castLib "Graficos"
- puppetSprite(12, 1)
- set the castNum of sprite 12 to member "Tiemposa" of castLib "Graficos"
- if the movieTime of sprite 20 <= 0 then
- set the movieTime of sprite 20 to 0
- puppetSprite(3, 1)
- set the castNum of sprite 3 to member "Brew1d"
- Desactivar(botonRew)
- else
- if the movieTime of sprite 20 >= Duracion then
- set the movieTime of sprite 20 to Duracion
- puppetSprite(7, 1)
- set the castNum of sprite 7 to cast "Bfw1d"
- Desactivar(botonAdv)
- end if
- end if
- go(the frame - 1)
- end
-