amberbee
asked on
Flash intro to display a random photo
I am a complete Flash novice so I apologise if this is a silly question.
I would like an intro that displays a random photo (1 of 5) for a couple of seconds before going into the main site. Ideally, the photo should fill the screen with a black border and fade in and out.
I found some code that displays a random image and a line of code that points to the main page. However, I don't know how to adapt this so that the image displays few a few seconds and fades in and out.
I'm not sure whether I should be trying to do this in one Flash file or whether I should create 5 Flash files and display a random one.
As I say, I'm a complete novice with Flash so any advice on the best approach would be much appreciated.
Many thanks
I would like an intro that displays a random photo (1 of 5) for a couple of seconds before going into the main site. Ideally, the photo should fill the screen with a black border and fade in and out.
I found some code that displays a random image and a line of code that points to the main page. However, I don't know how to adapt this so that the image displays few a few seconds and fades in and out.
I'm not sure whether I should be trying to do this in one Flash file or whether I should create 5 Flash files and display a random one.
As I say, I'm a complete novice with Flash so any advice on the best approach would be much appreciated.
Many thanks
// Sets the number of images in the random sequence
// IMPORTANT: Set this number to how many images you have
var myImageSequence = 5;
// Creates a random number:
var myRandomNumber = Math.floor(Math.random()*myImageSequence)+1;
// Creates the full image name like: 1.jpg
// IMPORTANT: If you're NOT using Jpegs change jpg to png or gif
var myImageName = myRandomNumber + ".jpg";
// Loads the random image:
loadMovieNum(myImageName, 0);
{getURL("studio.htm", "_self");}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER