Page 1 of 1

movie command

Posted: Sun Apr 08, 2007 8:11 am
by maxs
How do hold off sending code to my app until my movie is paused? The "wait until the movie = done " does not work.


start player "max"
wait until the movie = done
hide player "Max"

Posted: Sun Apr 08, 2007 4:53 pm
by Klaus
Hi maxs,

you can script the player to act when it is done :-)
Check the "playstopped" message in the docs.

Use it like this (in the player's script):

on playstopped
hide me
end playstopped

Please note that "playstopped" is also sent to the player when the user stops it (e.g. via QT controller bar)!


Best

Klaus Major

Posted: Sun Apr 08, 2007 4:53 pm
by Janschenkel
Do you just want to hide the player after the movies has ended while allowing the user to continue clicking around - or is your goal to prevent the user from doing anything until the movie has ended?
Case 1. Just hide the player at the end of the movie:
- handle the 'playStopped' message to hide the player after it's done

Code: Select all

on playStopped
hide the target
end playStopped
Case 2. No user interaction until end of movie:
- create a transparent button as large as your card, and bring it to the front
- this button will intercept all mouseclicks and absorb them
- so all you need to do is start the player, show the button, and cleanup at the playStopped message

Hope this helped,

Jan Schenkel.

Thanks and another ?

Posted: Tue Apr 10, 2007 4:57 am
by maxs
Thank you Jan and Klaus

How do I play a movie stored in the videoclips area of my project?

(Where 's the documentation on this area of quicktime movies?)

Thanks, Max

Posted: Tue Apr 10, 2007 2:23 pm
by Klaus
Hi maxs,

check the "play" command in the docs.

But you are quite limited when using imported videofiles!


Best

Klaus