Solved

swf expiration dat

Posted on 2007-11-15
2
514 Views
Last Modified: 2008-02-01
I am wondering if anyone out there knows how to code in expiration date into a Flash file? I would like the swf to stop working after a few weeks if I don't remove or change the expiration code after a month or two.
0
Comment
Question by:jackie777
2 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 20293907
there is a custom actionscript class someone made for this..so you would put code like this on frame 1 of your movie..

import com.gousable.SWF_Protector ;
var time_block:Object = {};
      time_block._use = true;
      time_block.msGetExpired = ( new Date(2007,11,7).getTime() ) ;  
                if(isViolated){
        time_block.alert = "\nSorry, time limit for this site has expired.\n ";
};

...........................
new Date(2008,2,7) // year, month, day
the date set here for expiry is the 7th of March 2008
2 is the month for March..as the month array is zero based
after that date a message pops up
.........................

Z
0
 

Author Comment

by:jackie777
ID: 20294304
Thanks Zeffer,

I'll give that a try.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash doesn't load in Iphone and Ipad 22 492
playing flash video on kiosk at startup 6 410
video live streaming 1 125
PDF: Display my cards game? 8 124
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question