# Random bg fade

**URL:** <https://forum.kirupa.com/t/random-bg-fade/89364>\
**Category:** flash\
**Created:** [May 7, 2005, 4:00pm UTC](https://forum.kirupa.com/t/random-bg-fade/89364 "2005-05-07T16:00:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reweb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/reweb/32/135_2.png) [@reweb](https://forum.kirupa.com/u/reweb)\
**Post date:** [May 7, 2005, 4:00pm UTC](https://forum.kirupa.com/t/random-bg-fade/89364/1 "2005-05-07T16:00:28Z")

</div>

I want to load an random background image:

This is what I fond on the forum:

```auto

images = ["1.swf", "2.swf", "3.swf"];
randomNr = Math.round(Math.random(images.length-1)*10)
container.loadMovie(images[randomNr]);

```

but :thumb:

i need to fade out the bg after 20 seconds and fade in another random background image

help me :flower:
