Each time my movie loads, I would like it to start at a random frame. I've used the following code in my movie and it works just fine in flash player. I'm using Flash MX and publishing it in Flash 5 format. However, in my browser, my movie starts at the beginning every time.
Here's what I have in the first frame of my movie after the preloader:
The random-ness doesn't appear to be the problem since it still doesn't work with I simply put
Any ideas as to what's going wrong? Thanks!
Here's what I have in the first frame of my movie after the preloader:
Code:
x = (13 + Math.floor(Math.random()*(280-13+1)));
gotoAndPlay(x);
The random-ness doesn't appear to be the problem since it still doesn't work with I simply put
Code:
gotoAndPlay(230);
Any ideas as to what's going wrong? Thanks!