# Random loaded jpeg (modified)

**URL:** <https://forum.kirupa.com/t/random-loaded-jpeg-modified/63860>\
**Category:** Uncategorized\
**Created:** [September 10, 2004, 5:30pm UTC](https://forum.kirupa.com/t/random-loaded-jpeg-modified/63860 "2004-09-10T17:30:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dude9er](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dude9er](https://forum.kirupa.com/u/dude9er)\
**Post date:** [September 10, 2004, 5:30pm UTC](https://forum.kirupa.com/t/random-loaded-jpeg-modified/63860/1 "2004-09-10T17:30:42Z")

</div>

I’ve seen threads asking about randomly loaded jpegs etc using xml. I have a question or variation of this concept. I have an animation on my home page (a jpeg slowly moving down using a tween), I would like to randomly switch this image (jpeg) each time the page is visited or reloaded, of course using the same tween/animation of the original visit. Would like to use 5 different images, that switch out everytime the site is visited, but using the same tween.

Any thoughts on how this is done? Would I have to make seperate swf’s, if so how do I go about making them randomly appear. Any fla’s or tutorials would be great.

Thanks for any help.

PS Is the a swap function that can call a jpeg and replace the image in the beginning and end of a tween?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 10, 2004, 8:17pm UTC](https://forum.kirupa.com/t/random-loaded-jpeg-modified/63860/2 "2004-09-10T20:17:17Z")

</div>

Trt this:[http://www.kirupa.com/developer/mx/loadingrandombackground.htm](http://www.kirupa.com/developer/mx/loadingrandombackground.htm)  
or this:[http://www.actionscript.org/tutorials/advanced/Loading\_random\_Background/index.shtml](http://www.actionscript.org/tutorials/advanced/Loading_random_Background/index.shtml)
