-
Only on my Mac?
I have made a slideshow with a random starting point for every time the swf is loaded - and it works fine on my Mac, but on PC it starts with the same picture every time.
This code is on frame 1 and after my animations there is at gotoAndPlay(2)
labelarray = ["jumpstart1", "jumpstart2", "jumpstart3", "jumpstart4", "jumpstart5", "jumpstart6", "jumpstart7", "jumpstart8", "jumpstart9", "jumpstart10"];
randomidx = random(labelarray.length);
gotoAndPlay(labelarray[randomidx]);
I Really would appreciate any help you might have.
++Mikado
-
hi, use this:
gotoAndPlay(labelarray[Math.floor(Math.random()*labelarray.length)]);
-
Hi
Thank you for your time, but it still doesn't work.
You can check it here: http://www.michaeldomino.dk/jun/
It is the small pic on the right.
It works fine on my mac/safari, but not when I use mac/firefox...or the PC/*
As far as I can see the code you suggest just finds the labelarray in another way?
++mikado
-
in my code i just tried to make sure to use the math functions in the most up-to-date manner. deprecated code might have been the reason...but no...
so...i'd have to guess...maybe the pc flash player can't handle numbers in frame labels? have you tried using frame numbers instead of labels?
-
Hi
Ok thanks..I will use yours :ยท)
I havent tried the frame numbers yet. I wanted to keep the possibility to change the movielength etc..
++mikado