play sound file after movie finishes

Thomas McGrath III 3mcgrath at
Sun Dec 5 14:23:06 EST 2004


There are basically two ways to approach this. The first is to check if 
the movie is done using:

the movie
the movie
repeat until myMovie is not among the lines of the movies
See also: done constant, play command, sound function, 
templateVideoClip keyword
Use the movie function to synchronize other actions with sounds.
The movie function returns a list of video clip names, one per line.
If no video clip is playing, the movie function returns done.

The second is if you know the length of the movie and base it upon time 
then act upon that:

Specifies the length of a sound or movie.
get the duration of player
put (the duration of me/the timeScale of me) into totalSeconds
See also: currentTime property, endTime property, play command, 
playRate property, startTime property, timeScale property
Use the duration property to find out how long a movie or sound takes 
to play.
The duration of a player is an integer.
This property is read-only and cannot be set.
The duration of a player is the number of intervals in the movie or 
sound contained in the player. (The number of intervals per second is 
specified by the player's timeScale property.)

Look to these and the SEE ALSO section to find a few tools that might 
help you.



On Dec 5, 2004, at 2:10 PM, m b wrote:

> Hi, I'm new to programming and Revolution.  I'm a speech therapist and 
> I want to create an app where someone can record there speech, then 
> view a movie of me saying the same word.  I've been able to do this 
> fine but the next part I can't figure out.  I then want the person to 
> be able to click a "compare" button where the movie file plays again 
> and their recorded speech file is played immediately after, basically 
> concatenated on to the end of the movie.  How do I do this?
> Thanks,
> Mike
> _______________________________________________
> use-revolution mailing list
> use-revolution at

Thomas J. McGrath III
1000 Killarney Dr.
Pittsburgh, PA 15234

More information about the use-livecode mailing list