# Loading a random background image with a preloader

**URL:** <https://forum.kirupa.com/t/loading-a-random-background-image-with-a-preloader/209816>\
**Category:** Uncategorized\
**Created:** [December 12, 2006, 5:44pm UTC](https://forum.kirupa.com/t/loading-a-random-background-image-with-a-preloader/209816 "2006-12-12T17:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcabaco](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@tcabaco](https://forum.kirupa.com/u/tcabaco)\
**Post date:** [December 12, 2006, 5:44pm UTC](https://forum.kirupa.com/t/loading-a-random-background-image-with-a-preloader/209816/1 "2006-12-12T17:44:32Z")

</div>

hello

I’ve been following the Loading a Random Image tutorial from kirupa but I can’t seem to make my image\*.swf’s to work…in it all I have is 3 frames, where the first 2 frames are for the preloader and the 3rd one is for the image… but all I get is the loadBar fully loaded (but with no animation, just static) and no image… does that code from the kirupa tutorial stop the \*.swf to make anykind of anymation?

another question is about how to simple load a movie on enter frame with a movieclip defining the location where it should be loaded to… shouldn’t it be: location.loadMovie(“movie.swf”) ? simply… no?

thanks in advance…
