3 Replies Latest reply on Oct 24, 2009 5:48 AM by Ned Murphy

    random images

    Soul Scream



           can anyone help me in this problwm. im trying to create a flash file that is randomly showing different objects/images, i believe i have the correct codes although i have encountered an error.


      codes are:


      pics = ("image1.png", "image2.png", "image3.png", "image4.png", "image5.png");
      loadPicture = function() {
              var ranNum = Math.floor(Math.random()*pics.length);
      sI = setInterval (loadPicture, 1500);


      and i saved them in same folder (FLA and the images)


      problem is i get this error message:


      Error opening URL 'file:///sheenint/Desktop/John/trials/13/undefined'

      what could be the problem?