Mar 27, 2002 #1 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?
I want a picture in my site. I want that picture change randomly whenever smb accesess my site. How can i do this?
Mar 28, 2002 #2 esearing IS-IT--Management Aug 22, 2000 132 US 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 Upvote 0 Downvote
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