Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple pictures

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
I want a picture in my site.
I want that picture change randomly whenever smb accesess my site.
How can i do this?
 
FlashMX can call a JPG directly so you can use Math.ciel
to call "pic" add i add ".jpg".

To do it in Flash 5, put the images into a MC on separate frames then use Action Script to pick random frames:

onClipEvent(load){
gotoAndStop(Math.ceil(x));
//where x= the number of frames that contain images.
}

Syntax may need some tweeking but thats the general idea.
Math.ciel will get a value between 1 and x. eSearing.com
a work in progress
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top