Question:

Random flash document?

by  |  earlier

0 LIKES UnLike

I have a flash document that is essentially just a slide show with ten pictures, but I want the show to start at a different picture and play through randomly each time the web page loads, repeating throughout the show is not that big of deal to me, but does anyone know the easiest way to do this, I don't know any actionscript, but I can learn if that is important (i just mention this to let other know that I need everypart of the code explained)

 Tags:

   Report

1 ANSWERS


  1. Say you have 10 pics for a random start, put the following into a movieclip

    onClipEvent(load){  //this code will start when flash load

       picNo=parseInt( Math.random( )*10)+1;  //get a random number from 1 to 10

       gotoAndStop(picNo); //use the number and go to a specific pic

    }

    Please contact for more info

You're reading: Random flash document?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.