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 › type "dropevent" was not found
Page Index Toggle Pages: 1
type "dropevent" was not found (Read 364 times)
type "dropevent" was not found
Oct 21st, 2008, 1:01pm
 
i have a couple of sketches that ran without problems last year.
however, when i try to run them now, i get this error:
type "dropevent" was not found.
this is in 0135.
when i try running them in 0148, i get this:
cannot find a class or type named "dropevent".
i'm sure this is just me lamebraining
Re: type "dropevent" was not found
Reply #1 - Oct 21st, 2008, 2:41pm
 
"dropevent" isn't something from inside Processing, is it inside your code?
Re: type "dropevent" was not found
Reply #2 - Oct 21st, 2008, 3:14pm
 

void dropEvent(DropEvent theDropEvent) {
 if(theDropEvent.isFile()) {
   File myFile = theDropEvent.file();
   println("file path : "+myFile.getAbsolutePath());
   println("is directory ? "+myFile.isDirectory());
 }
 if(theDropEvent.isImage()) {
   img = new PImage(theDropEvent.image());
 }
 println("a dropEvent "+theDropEvent);
}
Re: type "dropevent" was not found
Reply #3 - Oct 21st, 2008, 3:58pm
 
what is DropEvent? where is it from?
Re: type "dropevent" was not found
Reply #4 - Oct 21st, 2008, 8:17pm
 
thank you, that helped! i found the library online, at sojamo.de
Page Index Toggle Pages: 1