5 Replies Latest reply on Apr 15, 2008 9:51 AM by kglad

    Does the Math.Random() work differently in Firefox and Safari??

    SydCam_IT
      Hello,

      I was wondering if anyone can help me with a problem I'm running into using the math.random(). I'm using Flash CS3 and created a very simple script to select random frames in a simple movie. It works as expected in the CS3 environment and in Safari but it doesn't work correctly in Firefox or in the DotNetNuke module I am using. Here is the code:

      i = Math.ceil(Math.random() * 3);
      gotoAndPlay("Image"+i);

      I would appreciate any help you can provide.