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 & HelpIntegration › Have 2 applets on one HTML page
Page Index Toggle Pages: 1
Have 2 applets on one HTML page (Read 1018 times)
Have 2 applets on one HTML page
Aug 17th, 2009, 8:24pm
 
Newb Here (pls move post if it does not belong in here),

I have two Processing sketches I exported. I copied and pasted the containing <div></div> from the index.html from the export of Sketch A into the page I wanted it to live in along with the necessary .jar's ect . That works. I then exported sketch B and copied its <div></div> into the same page along with the necessary .jar's ect.  I then go to test the page where sketch A  still loads and works but sketch B does not appear nor work. The status bar says "applet sketch_B started" but it never shows up. (Both sketches trigger sounds.) Any suggestions for getting both Sketches to appear and work in one HTML page?

Thanks
Re: Have 2 applets on one HTML page
Reply #1 - Aug 17th, 2009, 10:55pm
 
Perhaps you should try with simpler applets (without sound).
There might be a problem with acquisition of sound card resource or something.
Also look at the Java console to see if any error is reported.
Page Index Toggle Pages: 1