Random background pic freaking out!

Howdy all,

I have a flash exe on a CD. Every time the project loads it has a new background image. The AS for this works fine. However, every once in a while when the project is loaded the backgound becomes all the images flashing. I have 9 different images in 9 frames of a movie clip (called “theClip”) and the AS is:
[AS]
choice = Math.floor(Math.random()*13); // returns an integer between 0 and 12
theClip.gotoAndStop(choice);
[/AS]

So obviously there are times when the AS is being ignored and it’s just playing all the frames of the clip. Unfortunately this CD is being given out to potential clients so I really need to find out if there is a way to prevent this from happenning.

Any ideas? :h: