A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Random Images In Menu

  1. #1
    Senior Member
    Join Date
    Jul 2001

    Random Images In Menu

    Hi All,

    I have a menu which I have done in Flash, over the buttons there is an image... I have 4 images the same size... Each time the movie loads I want one of the images to be used randomly, these images are in my library... Any ideas?


  2. #2
    Make a MC with all four images on separate frames.

    Then on the MC put these actions.

    onClipEvent(load) {
         framer = Math.ceil(Math.random()*4);
    that should generate a random number between 1 and 4. then go to the frame.
    So many Ideas

    So little Time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center