FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   strange occurance with applets and files
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: strange occurance with applets and files  (Read 260 times)
mm
Guest
Email
strange occurance with applets and files
« on: Feb 27th, 2004, 1:00am »


well here goes:
 
i took an applet that loads an image, and copied it to a new directory on a seperate (inaccessible) linux account.
 
this applet loads 2 files....images
 
then i changed the files to different images
and reloaded the web page that accesses this applet
 
and it still had the old data (unchanged images): why?
 
-h
 
toxi_
Guest
Email
Re: strange occurance with applets and files
« Reply #1 on: Feb 27th, 2004, 12:58pm »

this is because the images will be part of the jar file which is created when you export a sketch. you'll need to replace the images in that archive instead...
 
or you specify an absolute URL for loadImage().
 
Code:
// load image from URL
loadImage("http://myserver.com/foo.jpg");
// load image from .jar
loadImage("foo.jpg");
 
mm
Guest
Email
Re: strange occurance with applets and files
« Reply #2 on: Mar 3rd, 2004, 2:53am »

OIC- makes sense
 
Pages: 1 

« Previous topic | Next topic »