We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
'movieEvent' confusion (Read 973 times)
'movieEvent' confusion
Jun 20th, 2005, 5:32pm
 
I was looking around in the Movie documentation.  And I've seen in many examples the following:

Code:

void movieEvent(Movie m) {

myMovie.read();

// do whatever
}


I think it should be changed for the following? note the difference at the second line:

Code:

void movieEvent(Movie m) {

m.read();

// do whatever
}


I think this code is more clear in order to learn, and more general since we read the movie that is passed into the function, which is the one that has thrown the event.  This also makes it more simple when handling several movies.
Re: 'movieEvent' confusion
Reply #1 - Jun 25th, 2005, 12:36am
 
Yes, good catch. It's updated for the next release.
Page Index Toggle Pages: 1