Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

swf expiration dat

Posted on 2007-11-15
2
Medium Priority
?
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

618 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