 |
Author |
Topic: strange occurance with applets and files (Read 260 times) |
|
mm Guest

|
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

|
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

|
Re: strange occurance with applets and files
« Reply #2 on: Mar 3rd, 2004, 2:53am » |
|
OIC- makes sense
|
|
|
|
|