# \[FLASH 8\] gotoandplay random frame?

**URL:** <https://forum.kirupa.com/t/flash-8-gotoandplay-random-frame/197314>\
**Category:** flash\
**Created:** [August 15, 2006, 3:27pm UTC](https://forum.kirupa.com/t/flash-8-gotoandplay-random-frame/197314 "2006-08-15T15:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nebrow](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nebrow](https://forum.kirupa.com/u/nebrow)\
**Post date:** [August 15, 2006, 3:27pm UTC](https://forum.kirupa.com/t/flash-8-gotoandplay-random-frame/197314/1 "2006-08-15T15:27:08Z")

</div>

Im having some simple actionscript problems

I have a flash header here:

[http://nikibrown.com/archworks/home.html](http://nikibrown.com/archworks/home.html)

I have 3 frames and i want it to go to one of the 3 frames and stop when it loads.

This works fine in safar, but when i use FF for mac it will randomly go to frame 1 and frame 2 but not frame 3? it flashes frame 3 but then goes back to frame 2. God only knows what it does in IE (anyone care to tell me as i am on a mac and dont have ie…)

I have this in frame 1 on my actions layer:

gotoAndPlay (Math.round(1+Math.r andom()\*2))  
stop();

here is my .fla:

[http://nikibrown.com/archworks/headnav.fla](http://nikibrown.com/archworks/headnav.fla)

thanks for all the help guys!  
nebrow
