Forum Moderators: open
The better way to accomplish this would be to use a script language and check to see if the user has been to the page at all that day and if not, then load the Flash file.
The best approach I have found so far is to set a cookie through javascript, and to check that cookie during initialization of the movie. There are some trickeries involved, but it seems to be possible. If the movie is loaded like this:
<embed swLiveConnect="true" id="my_movie" name="my_movie".....> then you can set a cookie in ActionScript like this:
GetURL("javascript:document.cookie='my_cookie_data;expires=Mon, 7 Feb 2000 23:19:15 UTC'; return false;"); The value of the cookie can then be fetched again like this:
GetURL("javascript:document.my_movie.SetVariable('in_cookie', (document.cookie)? document.cookie : ''); return false"); which will place the data value of the cookie in the global ActionScript variable "in_cookie".
WARNING: I didn't test this yet, just found it somewhere. But it looks reasonable enough that it will probably work, although some further investigation is still required.