home *** CD-ROM | disk | FTP | other *** search
- global Duracion
-
- 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
- ActualizaContador()
- updateStage()
- set eltiempo to (the locH of sprite 10 - (65 + 23)) * 1.0 * Duracion / 465
- if eltiempo < 0 then
- set the movieTime of sprite 20 to 0
- else
- if eltiempo > Duracion then
- set the movieTime of sprite 20 to Duracion
- else
- set the movieTime of sprite 20 to eltiempo
- end if
- end if
- end
-
- on exitFrame
- if not (the stillDown) then
- mouseUp()
- else
- go(the frame)
- end if
- end
-
- on mouseUp
- 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 >= Duracion then
- puppetSprite(10, 0)
- puppetSprite(12, 0)
- go("PeliStop")
- else
- go("PeliPlay")
- end if
- end
-