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 › creating and importing my own classes
Page Index Toggle Pages: 1
creating and importing my own classes (Read 595 times)
creating and importing my own classes
Feb 11th, 2007, 10:04pm
 
I'd like to start separating my classes because right now I keep them all in the same .pde file and it's getting rather out of hand.  Does anyone know of a way that I can put them in separate files in same directory as the main executing sketch (the one that will have setup() and draw()) and then import them?  Or if this isn't the best way to do it what are my other options?

I apologize if this has already been discussed, I rtfm and searched through the forum but couldn't turn anything up.  thanks for you time.
Re: creating and importing my own classes
Reply #1 - Feb 11th, 2007, 10:27pm
 
http://processing.org/reference/environment/index.html#Tabs
Re: creating and importing my own classes
Reply #2 - Feb 11th, 2007, 10:38pm
 
Awesome, thanks for the fast and dead-on response, and sorry for being such a newb Smiley
Page Index Toggle Pages: 1