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"
movie command
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
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
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
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
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
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.
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
- 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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Thanks and another ?
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
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