home *** CD-ROM | disk | FTP | other *** search
- property myVideoSprite, myVideoLength, myIntroFile, myVideoFile, myIntroText, myVideoText, myFrame
-
- on new me
- return me
- end
-
- on setGoal me, whichGoal
- set myFrame to whichGoal
- end
-
- on getGoal me
- return myFrame
- end
-
- on initGoal me, whichSprite
- set myVideoSprite to whichSprite
- set myVideoLength to the duration of sprite(myVideoSprite)
- playVideo(me)
- end
-
- on setUpVideo me, whichIntro, whichFile, whichInText, whichOutText
- set myIntroFile to whichIntro
- set myVideoFile to whichFile
- set myIntroText to whichInText
- set myVideoText to whichOutText
- end
-
- on intro me, whichSprite, whichTextSprite
- set myVideoSprite to whichSprite
- set myTextSprite to whichTextSprite
- set the member of sprite myVideoSprite to member myIntroFile
- set the member of sprite myTextSprite to member myIntroText
- updateStage()
- set myVideoLength to the duration of sprite(myVideoSprite)
- playVideo(me)
- end
-
- on init me, whichSprite
- set myVideoSprite to whichSprite
- set myVideoLength to the duration of sprite(myVideoSprite)
- playVideo(me)
- end
-
- on resetVideo me
- set the movieTime of sprite myVideoSprite to 0
- stopVideo(me)
- end
-
- on videoAtStart me
- if the movieTime of sprite myVideoSprite = 0 then
- return 1
- else
- return 0
- end if
- end
-
- on videoFinished me
- if the movieTime of sprite myVideoSprite = myVideoLength then
- return 1
- else
- return 0
- end if
- end
-
- on videoStopped me
- if the movieRate of sprite myVideoSprite = 0 then
- return 1
- else
- return 0
- end if
- end
-
- on playVideo me
- set the movieRate of sprite myVideoSprite to 1
- end
-
- on rewindVideo me
- set the movieRate of sprite myVideoSprite to -3
- end
-
- on forwardVideo me
- set the movieRate of sprite myVideoSprite to 3
- end
-
- on stopVideo me
- set the movieRate of sprite myVideoSprite to 0
- end
-