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

how to create flash files with access for limited period

Status
Not open for further replies.

mercurymalli

Technical User
Oct 19, 2002
2
IN
dear friends,

i would like to know what is the script to make the flash .exe files available for limited period only. For instance, a presentation available for only 30 days
 
well i don't think that it is possible to grant access to the file 30 days long after having opened it 1st time but i think that there should be a possibility to give access to it from a fixed point of time on.

you would have to compare the actual date to a fixed value of a date (i.e. the publishing date) and then implement an if-function that allows to jump to the next frame only if the difference between the two dates isn't bigger than 30 days. i think the problem would be that if anybody knew the publishing date he could just reset his computer system date to a value that results in a lower difference than 30 between date 1 and 2 and so have access to the info again.

regards

firegambler
 
You could do it in MX with a local shared object. The first time the application runs it writes the time and date to the hard disk. Then on subsequent starts it compares the time to the one stored in the object - if it's over thirty days then it doesn't run.

A smart user could get around this very easily by writing a new LSO.

Alternatively you could uplink to a server via a PHP or ASP script, write a file there with initial start time etc and compare to this on subsequent runs. Much more secure but it means that, if the site goes down, then even valid users won't be able to gain access.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top