Hi ...
            
             
            
            
             
            
            
             
            
            
 
            
           
             I am new to processing and recently working on a project. In my project I want to play a movie based on the occurrence of the motion. So I simply find the average motion and based on that I play the movie.
            
            
             But the problem is that , a movie plays just for once. As I know draw() function continue sly run. 
            
            
             when the program run first time and I create a movement , then movie plays and continues till its end. but after that 
            
            
               next time when I again make a movement then a movie doesn't start.  why???
            
            
             Any Suggestions...???
            
 
            
              
              1  
            
 
            