Loading images dynamically. Avoiding cache

[color=black]Hi! I used this code to load some images into my site. Does anybody know how my code should look like if I want to load it with an uniqe parameter. I’m truly sorry: my english isn’t very good![/color]

:p:my code:

_root.createEmptyMovieClip("container",1);
container.loadMovie("bilder/front.jpg");
container._x = 120 ;
container._y = 100 ;

låvv frode

isn’t this possible? if it isn’t that is a major problem for me. cause I want my site to load new images every now and then!

do a search (google or whatever) for flash cache issues, there is a way to use a randomly generated number to make each loadmovie unique… I can’t remember where i saw it now though, check the tutes at actionscript.org as well…

good luck…

what are you trying to do? load an external image, with the same name, but different content every few weeks? You want to avoid having the users browser cache the image??

yeah, that’s pretty much what I’m trying to do.
I have a code I’m using to load my text, and it works perfect. The problem is that I don’t know how I can use that code for the images.

 myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);

I want this code to load an image named “front.jpg”, and whenever I upload a new “front.jpg”-image I want it to change in the swf.

yeah, that looks familiar… you can use the same thing for loading your image file

Hi! I know that I can use the code, but I’m not sure how! Can u help me?

 myIdentifier=Math.round(Math.random()*10000);
holder.loadMovie("myimage.jpg?uniq="+myIdentifier,1);

give that a shot

“holder” is the container MC you’re loading images into.