Flash random image

Out of context: Reply #8

  • Started
  • Last post
  • 15 Responses
  • Jerry0

    You could also try pasting this code into the first frame of a flash movie:

    imagefolder = "imgs/";
    imageprefix = "pic";
    imagenum = random (10);
    imagesuffix = ".jpg";
    //
    image = imagefolder + imageprefix + imagenum + imagesuffix;
    //
    trace (image);
    //
    _root["yourmovieclip"].loadMovie (image);

    keep in mind that the image has to be a non-progressive jpg.

    with kind regards,

    Jerry

View thread