# Random Animated Pictures

**URL:** <https://forum.kirupa.com/t/random-animated-pictures/106728>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 10:04am UTC](https://forum.kirupa.com/t/random-animated-pictures/106728 "2004-04-08T10:04:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nehal](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@Nehal](https://forum.kirupa.com/u/Nehal)\
**Post date:** [April 8, 2004, 10:04am UTC](https://forum.kirupa.com/t/random-animated-pictures/106728/1 "2004-04-08T10:04:03Z")

</div>

I want to learn effects seen on [this](http://www.petroplus.nl/index_ie.jsp). I want different graphics to load every time the page is load. I also want it to differently each time. I have about 10 pics. Any help suggestion reg. tutorials is much appreciated.

---

<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:** [April 8, 2004, 11:23am UTC](https://forum.kirupa.com/t/random-animated-pictures/106728/2 "2004-04-08T11:23:58Z")

</div>

You should check the actionscript dictionary in flash.  
It says something about Math.random() which you will probably have to use.  
You can have Math.random generate a random number which then determines what pic to show.  
If I get around to it, i’ll try to write a tut.

---

<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:** [April 8, 2004, 11:30am UTC](https://forum.kirupa.com/t/random-animated-pictures/106728/3 "2004-04-08T11:30:43Z")

</div>

check this :[http://www.kirupa.com/developer/actionscript/loading\_random\_movie.htm](http://www.kirupa.com/developer/actionscript/loading_random_movie.htm) it’s a tutorial about loading random movie, it could interest you.

Ubik

---

<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:** [April 8, 2004, 11:52am UTC](https://forum.kirupa.com/t/random-animated-pictures/106728/4 "2004-04-08T11:52:33Z")

</div>

Check this out, a small example.  
in the zip is a folder img that contains 5 jpg’s. They load randomly everytime you load the swf.
