play movie once, no loop, then dispose ?

jacobrendell's icon

hi hi everyone i'm working on a sampler patch and i have two questions -

is there a way to play a movie once with no loop and then dispose it? "dispose" does what i'd like. but i don't know how to send the appropriate messages simultaneously so that the clip plays once with no loop and then clears completely from the matrix. i know that commas prioritize the messages. however, the movies are being selected from a umenu: drop a folder of clips onto the patch and the umenu populates, then a number message is sent to the umenu, which then reads to jit.qt.mov... and so can someone help me?

and another question... is it possible to make a button that, when pushed down, begins playing the movie, and when released, disposes (even if not completed)? i've looked at all of the jit.qt.movie attributes, couldnt find it. i suppose if max can't do it, i know i could with flash, but i'd like to keep it all within max if possible.

i'll attach a simple patch... i'd really appreciate any help! thanks!

851.av_sampler.maxpat
Max Patch
strimbob's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hope this helps

jacobrendell's icon

oh great -- thanks strimbob! this is a huge help! thanks so much