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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random flash home page 1

Status
Not open for further replies.

renniemitchell

Technical User
Oct 4, 2004
3
GB
Can someone tell me how to make it so that every visit to (or refresh of) a home page displays a different movie from the last time? I've seen it before on this site
But how is it done?
 
well if you want it to be random, you simply make your mc then select one based on random()... if you want it to step through a series of movies and not be random then you could set/read/update a cookie...

[conehead]
 
Thanks Conehead, not sure I understand you though. What's 'mc'?

I want to have about 6 alternative swf files which you reach when visiting the home page. Each time someone visits the site, they see a different page from the last time. Maybe its Javascript I'm after.
 
Well, I was thinking of engineering it within Flash where you would talk to various movie clips (mc's) - but you could certainly do it with various swf's and Javascript... sounds like you will need to write a cookie and update it each time they visit the site and show the swf the cookie says it is time for...

[conehead]
 
Seems to be cutting off the remainder of your message, but I get the idea. I'll do it this way, I think. Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top