Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > macromedia flash sitedesign > august 2003 >

macromedia flash sitedesign : Home page images


bigguy
8/4/2003 10:33:11 PM
I am looking to add a feature that will change out the movie clip on my home page when a view reenters my site.

Example: Lets say that you come to my site for the first time and you see a picture of pop corn on the home page but the next time you enter the site, which could be a day later or a hour later, the image is different.

I would also like the images to change out when you revisit the home page from a different part of the web site.

Is this something that you can do in flash or will I need to with the html code before the main html document.



Gil.F
8/5/2003 1:27:20 AM
Just off the top of my head:

You could have an array of images, and use either a cookie or the shared object to store which image the user saw when they visit the page. You could then retrieve that number on the next visit, and increment it to show them a new picture.

So if on the last visit they saw image 3 in the array, you can show them image 4 next time, and store the new number so that on the following visit time they will get image 5. And so on.When they see the last image in the array, you can go back to the start and show them image 0.

cheers,
Gil


Gil Fewster
bigguy
8/5/2003 2:03:45 AM
thank you

keith

AddThis Social Bookmark Button