# Random frame: To display background

**URL:** <https://forum.kirupa.com/t/random-frame-to-display-background/125029>\
**Category:** Uncategorized\
**Created:** [October 9, 2004, 2:40am UTC](https://forum.kirupa.com/t/random-frame-to-display-background/125029 "2004-10-09T02:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chockybickyman](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Post date:** [October 9, 2004, 2:40am UTC](https://forum.kirupa.com/t/random-frame-to-display-background/125029/1 "2004-10-09T02:40:06Z")

</div>

I have a movie clip placed on the first frame within the main timeline.

- The movie clip contains 4 frames, each frame has a different image.

- I want to display one of these frames at random every time the game loads.

- What script would i need to target a random frame within this movieclip?

- Would this script be placed on the main timeline?

Any help, much appreciated  
Cheers  
Peter.D  
[chockybickyman@hotmail.com](mailto:chockybickyman@hotmail.com)
