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.
IndexProgramming Questions & HelpSyntax Questions › No accessible field... / problem with class
Page Index Toggle Pages: 1
No accessible field... / problem with class (Read 497 times)
No accessible field... / problem with class
Mar 18th, 2007, 10:48pm
 
Hi!

Sorry for the newbie question, but I dig on reference and forums without any luck. I want to display a quicktime movie from a class, but I'm stucked in the image() part... any suggestion will be appreciated.

---

Show_mov mm1;

void setup() {
 size(200, 200);
 mm1 = new Show_mov(this);
}

class Show_mov{
 import processing.video.*;
 Movie myMovie;
 PApplet p;
 PImage v_image;
 
 Show_mov(PApplet parent){
 p=parent;
 myMovie = new Movie(p, "prova1.mov");
 myMovie.loop();
 }
 
 void movieEvent(Movie m) {
 m.read();
}

}

void draw() {
 mm1 = image(m ,0,0);
 return mm1;
}
Re: No accessible field... / problem with class
Reply #1 - Mar 19th, 2007, 5:42pm
 
problem solved with the use of switch();
Page Index Toggle Pages: 1