?
Solved

swf expiration dat

Posted on 2007-11-15
2
Medium Priority
?
522 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

750 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