# How do you expire a SWF?

**URL:** <https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915>\
**Category:** flash\
**Created:** [March 31, 2006, 4:58am UTC](https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915 "2006-03-31T04:58:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenelks](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lorenelks](https://forum.kirupa.com/u/lorenelks)\
**Post date:** [March 31, 2006, 4:58am UTC](https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915/1 "2006-03-31T04:58:06Z")

</div>

Hi:  
I want to be able to:

(1) expire a swf within a certain number of days after it is first run.  
I know I can use getDate() to determine the current date. However, how to I have the swf (1) determine the current date (2) save this info somewhere and (3) have the swf expire (say 60 days after it is first ran).

(2) expire a swf on/by a certain date.

Any help on the code here would be great.  
Thanks,  
Loren

---

<div class="post-metadata">

**Author:** ![ibm](https://avatars.discourse-cdn.com/v4/letter/i/7ba0ec/32.png) [@ibm](https://forum.kirupa.com/u/ibm)\
**Post date:** [March 31, 2006, 9:34am UTC](https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915/2 "2006-03-31T09:34:22Z")

</div>

Hi,  
I am also looking samthing like that. Pl. tell me if you get such code any where.How ever if you want some .swf with same property then i can give you the same if you can de compile and can see.

IBM

> [@lorenelks](#):
>
> Hi:  
> I want to be able to:
> 
> (1) expire a swf within a certain number of days after it is first run.  
> I know I can use getDate() to determine the current date. However, how to I have the swf (1) determine the current date (2) save this info somewhere and (3) have the swf expire (say 60 days after it is first ran).
> 
> (2) expire a swf on/by a certain date.
> 
> Any help on the code here would be great.  
> Thanks,  
> Loren

---

<div class="post-metadata">

**Author:** ![biznuge](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/biznuge/32/11567_2.png) [@biznuge](https://forum.kirupa.com/u/biznuge)\
**Post date:** [March 31, 2006, 10:17am UTC](https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915/3 "2006-03-31T10:17:13Z")

</div>

Would it not be possible to use flash cookies to place a date onto the users machine, which could then be parsed on preloader entry to check the date in the cookie against the current date.

OR

If an overall expiry date is require, why not just embed your set expiry date into the preloader and then just use flash date and time functions to do a comparison.

Just some thoughts!

---

<div class="post-metadata">

**Author:** ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)\
**Post date:** [March 31, 2006, 10:34am UTC](https://forum.kirupa.com/t/how-do-you-expire-a-swf/183915/4 "2006-03-31T10:34:30Z")

</div>

dates are drawn from client pc so it’s not smart doing it like that  
also cookies can be deleted so it can start from a scratch  
best way is to make login system with PHP and MySQL  
I think it’s most real software like  
I recently made credit system for videochatting and that’s how we did it
