We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
when i run movie = new Movie(this, "sdfds.mov")
in setup, everything works fine.
When i instantiate it in a class it throws the error constructor is undefinded
.
i think the problem is the this
reference. does anybody know a solutions for this?
Thanks, Andreas
Answers
Is the class you have created in a .pde or .java tab
The answer is different for each case I am going to assume that it is in the main sketch code i.e. a .pde tab
Then you can start the movie anywhere with
movie = new Movie(app, "sdfds.mov");
P.S. I have not tested this but it should work
Thanks quark, worked wonderful. Searched quite a lot, now really happy :)
Why, 'this' only, does not work?
Technical FAQ: Why I can't create an instance of a library from my own classes?