Flyin' Pony
10-15-2003, 10:55 AM
I am trying to do this...Create a cookie that contains a counter which increments by one number each time a visitor views a certain page. Let's say it starts with "1" - have the web server read the cookie and serve up flash1.swf, then increment the cookie to now read "2". The next time that
same visitor sees the page, the web server reads "2" and serves up flash2.swf, then increments the cookie to say "3". The code on the page would be JavaScript to do the cookie set, read, increment and then dynamically change the Flash movie. The downside here is how to deal with more than two Flash movies. It would be easy to take all odd numbers and
serve flash1.swf, and all even numbers and serve flash2.swf.
I have two movies that I would like to use,
How about this,
OR
you can read cookies with javascript, and transfer it's value to the flash movie, what loads inside it other swf's, depending of transferred value
...is this viable and how can this be done?
There has to be a way... if you can dynamically change images everytime the same page is loaded you surely must be able to do it with an swf...
ON an Active Server Page
same visitor sees the page, the web server reads "2" and serves up flash2.swf, then increments the cookie to say "3". The code on the page would be JavaScript to do the cookie set, read, increment and then dynamically change the Flash movie. The downside here is how to deal with more than two Flash movies. It would be easy to take all odd numbers and
serve flash1.swf, and all even numbers and serve flash2.swf.
I have two movies that I would like to use,
How about this,
OR
you can read cookies with javascript, and transfer it's value to the flash movie, what loads inside it other swf's, depending of transferred value
...is this viable and how can this be done?
There has to be a way... if you can dynamically change images everytime the same page is loaded you surely must be able to do it with an swf...
ON an Active Server Page