Solved

swf expiration dat

Posted on 2007-11-15
2
517 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

687 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