If you know OOP well, you can write all your programs in such a way so as to code processing as if you were doing flash, having multiple "movie files" in this case, processing code, and be able to execute them at will. It's a bit tricky, but here's how it's done.
Create a master template class from which all other "programs" will inherit. In this case, let's name it "client":
Code:
class Client(){
Client(){}
void draw(){}
void mousePressed(){}
//callbacks etc
}
Next, create an array space for these clients
Code:
Vector clients;
You can add clients via Vector method add()
Code:
clients.add(MyClient());
And in your draw(), cycle through your clients:
Code:
for(int i=0;i<clients.size();i++){
Client currentClient = (Client)clients.get(i));
currentClient.draw();
}
You can also use the same technique to implement callbacks, such as:
Code:
void mousePressed(){
for(int i=0;i<clients.size();i++){
Client currentClient = (Client) currentClient.get(i);
currentClient.mousePressed();
}
}
Now that you have this framework set-up, you can write any type of processing code within this framework, and you can run everything simultaneously, selectively, however you wish. For example:
Code:
class Flux extends Client{
Flux(){
}
void draw(){
ellipse(50,50,100,100);
}
}
Now I just made a class that is share-able between all others. In fact, I can copy and paste entire processing sketches to fit within this framework, then run them concurrently.
Enjoy!!