Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




File Expiration Date From Cd-rom/users Computer



I have a client that wants a cd-rom that will hold and display information certain quarters throught the year. It has to be ran from the cd and must use the end users system clock. Any suggestons where to find help?



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-04-2002, 01:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Detecting The Date On A Users Computer
Hello
This for flash 5.

Is there a way to detect the date on a users computer? We are building a
CD that has dated material on it. If the user is viewing the CD and clicks on a certain link and if the date has expired we want to be able to pop up a message that they need to go to a website to get the updated material.

thanks
Shaybo

Detecting Existing File On Users Computer
I am developing an interface for a CD and need to determine if a specific file exists in a specific location on the users computer. Does anyone know if Flash MX is capable of doing this? If so how? If not, what do you suggest. Thanks.

Load Text File Externally From Users Computer
Hi,

I have a situation whereby I need to give the user the ability to define a range of variables via a text file (it's a non trivial dataset so it's not an option to just have the user input these directly via a flash form).

Basically I'd like them to type in a text box a location on their local hard drive (ie c:/directory/myfile.txt) where the file sits and then load it in.

This works fine on my hard disk and even on CD (I need to distibute this project in 2 forms both on the web and on CD) - but on the web server it fails. I assume that this sort of path (c:/) is either nonsense on the server, or is really pointing to the servers C:/ drive instead of the users ?

Anyway I was hoping someone out there may have a method of being able to point to the users hard drive to load variables from a txt file.

Any other suggestions are welcome as well. I have considered having an upload facility so the file is put on the server but would prefer not to have to do this at this stage.

Thanks,

Russell

 

Expiration Date
I'm still having trouble finding a code to put in my flash file to tell my .swf file not to play if the date I chose has passed. Can anyone help?

Expiration Date
Hi all,

I'm wating for a client to pay up and would like to get the money soon. They have told me the payment is in the mail but it's been over a week and I have not received anything. Anyway, I would like to set up a movie that will "expire" if the payment is not received by a certain date (considering he may lock me out of the site and I'll have no way of removing the files already uploaded). I've tried this piece of code, but it doesn't want to work:

expiryDATE = "2/8/2003";
myDate = new Date();
dateTODAY = (myDate.getMonth()+"/"+myDate.getDate()+"/"+myDate.getFullYear());
dateEXPIRE = "expiryDATE";
if (dateTODAY >= dateEXPIRE) {
gotoAndStop("Payment", 1);
} else {
gotoAndPlay("Scene 3", 1);
}

Any suggestion as to what I'm doing wrong? (I mean besides uploading the files before I was paid! It's a long story and they were an affiliate of my former employer.)

Thanks,

Liquid4012

Expiration Date
I have this script:

//checks time YYYYMMDDHHMMSS
time = new Date();
year = time.getUTCFullYear();
month = (time.getUTCMonth())+1;
day = time.getUTCDate();
hour = time.getUTCHours();
minute = time.getUTCMinutes();
second = time.getUTCSeconds();
if (month<10) {month = "0" add month;}
if (day<10) {day = "0" add day;}
if (hour<10) {hour = "0" add hour;}
if (minute<10) {minute = "0" add minute;}
if (second<10) {second = "0" add second;}
timenow = year add month add day add hour add minute add second;
timeexp = "???";

I want to make timeexp=(timenow-5 days). And it has to be in YYYYMMDDHHMMSS format

I know this has to be simple but i'm having problems, any help would be appreciated. Thanks.

Cache Expiration Date Of SWF?
hey

does anyone know how to set the expiration date of a SWF in the browser cache? thanks!

How To Create An Expiration Date
Is it possible to create a SWF file that has a built in expiration date, say 30 days after opening the file? I know you can create a file that will stop working on a particular date, say January 1st, 2003.

But is there a way to make the SWF remember the first day it was opened so it could stop working 15 or 30 days from that point.

It would be good for demos or screensavers that would expire after a certain number of days like some other software programs.

Expiration Date Accessing .txt
Hi, here I have over hundreds of swf files that I need to put expiration date on, the thing is that i'm gonna distribute it to different clients, so each client will have a different expiration date.
What I thought of is making a .txt containing a variable and its value (being the date), so that when the swf loads, the first thing it does is reference this .txt using loadVars.
I found this code, but it seems to not have any effect if I change to an old date:

myVariables = new LoadVars();
myVariables.load("VUBIZ.txt");
myVariables.onLoad = function(success) {
if (success) {
// get year and convert to a number
var strYear = myVariables.EXPIRES.substr(0, 4);
var numYear = Number(strYear);
// get month and convert to a number
var strMonth = myVariables.EXPIRES.substr(4, 2);
var numMonth = Number(strMonth)-1;
// get day (i.e. date) and convert to a number
var strDate = myVariables.EXPIRES.substr(6, 2);
var numDate = Number(strDate);
var expiryDate = new Date(numYear, numMonth, numDate);
trace("expiryDate= "+expiryDate);
var today_date = new Date();
trace("today's date= "+today_date);
//if (today_date.getMonth()+1>myDate.getMonth()+1 && today_date.getDate()>myDate.getDate()+1);
var tmpDate = new Date();
var today_date = new Date(tmpDate.getFullYear(), tmpDate.getMonth(), tmpDate.getDate());
trace("This is new today's date: "+today_date);
if (today_date>expiryDate) {
_root.unloadMovie(0);
}
} else {
_root.gotoAndPlay("Scene2",1);
}
};

Since I'm kind of new to actionscript, could anyone explain to me what format should I put the date in the .txt file?

Flash Files With An Expiration Date
I am trying to add an 'expiration date' feature to my flash files so that 30 days after it is downloaded, it will display a graphic within the file. Because Flash 4 doesn't easily retrieve system dates, how else can I do this?

Anyone have any ideas of a better way?

Set Expiration Date Of Flash Projector ?
Hi, maybe i am am missing the obvious.

i am creating a Flash projector for mac and PC.

how do I set an expiration date???.

obviusly this is determined by the persons time and date on their computer.

Any one know?,
thanks!!!!!!!!

Best Way To Allow A Free Trial Or Set Expiration Date In Flash Swf/exe?
I'm creating a mini-application totally in flash and would like to allow people to use it free for 30 days or something to that effect. Is it possible to setup a scenario where the swf will expire (go to expiration frame rather than application start) 30 days from the first time they access it, or do I have to hard code an expiration date check in the movie?

What is the best way to handle this? I'm not real concerned about hackers working around the expiration or decompiling the swf, this is just for general users.

Thanks in advance!

Calculation Expiration Date Based On Number Of Months
Hi, in need of some help, I know how to get the current date, but I'm working on an app by which user accounts expire based on payment options, semiannualy, annually for example. How would I go about this. Like if a user registers and account on December 12, 2004, how can I accurately calculate the date 3,6,12,24 months from then. Thanks alot

[F8] Get Secure Protection (expiration Date) In A Flash Game
hi there,
ive been looking for information about how to get some security for games in flash using AS2.0

the thing is how to make sure my game demo is able to play for 30 days and after that time passed it for example just shows a frame with some expiration information..

EDIT!
this is for an offline game, its not supposed to be online.

any ideas?
thanks in advance

Getting Info From The Users Computer Hd?
I would like to be able tell what the time is on the users computer when they enter my site. I would like to then greet the users with -
good morning bob or good afternoon bob.

Is this sort of thing possible in Flash?
where do i start looking for answers? do i need to know php?
any directions much appreciated.
max

Getting Info From The Users Computer Hd?
I would like to be able tell what the time is on the users computer when they enter my site. I would like to then greet the users with -
good morning bob or good afternoon bob.

Is this sort of thing possible in Flash?
where do i start looking for answers? do i need to know php?
any directions much appreciated.
max

Loading From Users Computer
I am creating a slide show and I am including a few choices of songs for the user to listen to; however, I also want to allow them to load a song from there own computer, such as a file -> open and then allowing them to browse their computer and play a certain song. How would I code this capability? Thanks.

Loading Images From Users Computer
I have created a simple matching exercise for little kids. One of the parents expressed an interest in using there own images in the matching game. My thought was to have them put several images in a folder on their "C" drive and have the swf look for the images in that folder. Once the swf file is downloaded into a browser on their computer the file path will always be the same. eg C://pictures/image1.jpg. I have been playing with loadVars and loadMovie as ways of pulling the image off of my hard drive and into the swf file I created. As long as the swf file originates from my computer either of the two methods will work. I can right click on the swf file and open with my browser. This also works. I would think the end result would be the same as if it came off of a server but when I put it on an outside server the swf will not work.

Does anyone know if this is possible and if so I would be so appreciative of a little direction and or suggestions.

Thanks ... Michael

Saving Information To A Users Computer?
Hi, im looking at designing a website where the user can customise the look and feel quite heavily and am wanting to save the look for when they return. This is something i havent done before and was looking at the best way of doing it. Im using AS2 at the mo but if needed i could take the leap and start using AS3.

Could any settings also be saved on the server too?
Any tutorials/examples would be most appreciated
Cheers
Neil

Flash Player Not In End Users Computer
Beginner Question:

The purpose of this question is:

I am trying to understand if Flash movies that are not loaded into a html file will automatically contain a flash player (so that the movie can be seen without a Flash Player already installed on the computer).


Another way to ask the same question is:
If the address to the Flash movie is: mySite.com/movie1.swf
(note that there is not a html page in the address)

1.Does the movie play if the end user does not have a Flash Player?
2.If it does, does the movie play on the end users older Flash Player or would it play on the newer Flash Player that would have been automatically included in my movie?

Thanks in advance for your help,

Andy

How To Load Images From The Users Computer
I have written a very simple flash program for very young kids. One of the programs is a matching game where the kid moves a picture up to one of three pictures that match. Someone expressed an interest in using their own images. I was wondering if it is possible to have them place pictures in a folder on their hard drive. C:/pictures as an example. The flash program that resides on the internet would then be loaded into their browser on their computer and look for the images in a folder "pictures" on their "C" drive. With the swf file on my computer I right click and open with firefox. The image is loaded from my computer. But if I put it on a server and load it into the browser from the server the picture does not appear.

pic = ("C:\pictures\p1.jpg");
startLoading(pic);

function startLoading(pic) {
createEmptyMovieClip("emc", getNextHighestDepth());
loadMovie(pic, this["emc"]);
placeImage();
}

function placeImage(){
emc._alpha = 100;
emc._x = 200;
emc._y = 200;
}

Any thoughts or possible solutions?

Thanks ... Michael

How To Avoid Caching On A Users' Computer?
I want the user to see the preloader bars everytime he visits my site.
Is there any way I could avoid the caching in his computer?
Because if he visits one time he'll see the progress bar but the second time he will not see it.

Form Via Email, Download To Users Computer
please help. is there anyway i can set up a form that will send dynamic text to my email address. And also is there anyway i can download files to my uers computers, as im looking at downloading fonts, desktops, and screen savers for example.

Flash MX Download Images To Users Computer
Thanks for taking the time out to read this. I am trying to come up with a method and CD-Rom that will let the end user save an image to their desktop. Or save an image as wallpaper automatically. I have used Director projectors with the proper extra in the past. However with MX they don't seem to work because of the fscommand folder that has to be created. Any suggestions would be greatly appreciated.
Again thanks for your help.

FlaMX__________How Do You Get Time From A Server Instead Of Users Computer?
Hi,

I've built a digital clock in FlashMX that reads the time from a users computer but what I'd like is to build one that gets the time from a server.

I'm building a site that is to be viewed in Asia so I thought it would be cool to show different times or at the very least our local time... but not have it dependant on a users computer time... If you get what I mean.

I.E...

Tokyo = 2:00am
Seoul Korea = 3:00am
Local Time (Vancouver BC) = 8:00pm

Any ideas? It would also be cool if it was night here... to show a night city photo.. and if it was day, a day shot.

-B

Disabling Text Antialias Of A Non Existing Font In The Users Computer
Hello there,

I need to find a way to disable the antialias of a spefic font "nokia.tff". A way of doing it is to put the text field as "dynamic text" for the antialias to be gone.

But (there's always a "but") this won't happen if the user doesn't have the "nokia.tff" font installed on his computer. Instead, it will replace with a crappy looking "Times New Roman".

No good, that's not the solution!
Well, the last chance was to "embed the entire font outline" into the swf, but (there's the "but" again...) the antialias is back on!!!!

I'm going crazy!
Does anyone know a good way of disabling it?
Thanks in advance

Quick Question: How Can I Get Users Computer To Auto Detect Flash
Quick Question: How can I get users computer to auto detect flash



Sorry if I worded the subject wrong buy, I dont neeed a auto detect to go to one page or the other.

I need an auto detect because Iam working on my school's webpage in flash, and all the computers at school have deep freeze.

My school has like a T3 line, but like old computers, so when they go to the page it takes like 30seconds for the pop up to come up to download flash. After that everything is fast

So in other words I need a HTML code if there is one to check the comptuer faster or something...

Thanks in advance

How Do I Create A Countdown Not Base On Users Computer? (greenwich Meantime/server)?
Hi

I want to create a countdown timer but I don't want it to be reliant on the users computer.

Is there any way to do it using either something like Greenwich meantime?

Or if not, is there anyway to use the time of the server hosting the SWF?

I found some solutions for the later by searching but they depend on using PHP or ASP as well, which I don't have the option to do. In fact I have to do this purely using actionscript.

Controlling A Movie By Computer Date
Hi, does anyone know the best way to control a movie by the date on a computer. For instance the movie is a list of events [say 20]. only the first 5 are visible, but as the date passes [say 15.12.05] by the movie will then move to the next relevant 5 events [the first event shown would then be 16.12.05 - x, y positioning] Any ideas? Any help much appreciated.

Controlling A Movie By Computer Date
Hi, does anyone know the best way to control a movie by the date on a computer. For instance the movie is a list of events [say 20], but only the first 5 are visible. As the first event date passes [say 16.12.05], the movie will then move to show the next relevant 5 events - moving the movie by x, y positioning.

Is it something along the lines of:

var today: Date = new Date();
if(today.getDate() < 16.12.05){
//do this [x,y]
}else{
//do that [x,y]
}

But do i need to create an array to control specific events [spread over 3 months, the array with dates, months].
Any ideas? Any help much appreciated.

Movie Clip Based On Computer Date
I have on my stage a typical room with a window. I want the window to represent the time of year such as winter, spring, summer or fall. So based on the computer clock it will play that clip. Something like this I guess but this doesn't work. Thanks! Wendell



Code:
stop();

function seasons()
{
var month = my_date.getMonth()
if (month == 11|0|1)
gotoandPlay("winter");
else if (month == 2|3|4)
gotoandPlay("spring");
else if (month == 5|6|7)
gotoandPlay("summer");
else if (month == 8|9|10)
gotoandPlay("fall");
}

Can Flash Use "users Computer's Time" As A Variable?
Hello Everybody.
I have an idea by using flash actionscripting but dont not it's possible or not.
I will soon make a 3d web site for a company.It will be a city and now created 2 city form.
1- City Morning
2- City Night
For example user uses computer at night "City_Morning" animation will be loaded.or opposite.
( When computer time shows between 18:00 - 05:00i animation will show night and when it is not it will show morning animation)
Just i want to ask if it is possible to do such an animation timer in flash.I am not an expert programmer.If you can help me i will be very happy.

Thanks

Loading A .swf File In A .swf File Works On Computer, Not On Site, Why?
I have a movie where at one point it plays a .swf movie in it, now on my computer it works perfect, but when i upload it, it just is blank during the time it should be playing... any ideas?

How To Save Swf File On The Web In To My Computer
could you help me

HOW to save swf file that are on the website to the computer

that i can keep looking on it next time

thank for helping

Writing To A File On Same Computer
Hello,

Is it possible to write to a file which is not stored on a server/another server? I have briefly worked with ASP, but I am working on something which is intended to be used after it is downloaded straight from a person's desktop. So, if they can make changes using a Flash interface, I would like it to store those changes locally rather than sending/storing elsewhere.

Streaming Mp3 File From Computer
Okay..i have a button that i click on to stream an mp3 file using loadMovie.
I had each mp3 song be in a different swf file and then i had loadMovie in the main music player fla file, to load the seperate mp3 swfs.

Here is the code for one of the buttons:

on(release){loadMovie("elcondorpasa.swf","soundObj ect");
}

I have a swf file named elcondorpasa.swf and it is a soundObject.
it loads when i click the name of the song on the player
here is the URL (it may or may not work depending on your ISP)

www.cybertribe.org/mota/mota.html

Writing A Text File To Your Computer?
does anyone know of a way you could have your .exe flash file send variables to be saved to a text file on your computer.

I know you need to have some intermediary script in perl or something I'm guessing. but does anyone know where I could find a script to do this?

thanks
Jason

[F8] Downloading A File To Visitor Computer
hi all,
actually i m working on my personal website.. i want to give some of file which could any user download by a click on the icon of the file.
unfortunatly i do not have the script.. can any body tell me the sript or send me the fla. file, it would be a great help..

Thanks a ton

Regards,

Allauddin

Flash File Too Big To Even Open On Own Computer
I use Flash MX 2004, and I made an interactive game that's 465 MB. It's a .fla file. It's big, really big, I know. But now I have an even bigger problem, because I can't even open it on my computer. Flash still works normally, and I tried reseting my computer, downloading Flash 8... but those things didn't work. I think I might have to extend my Flash system memory, but I have no idea how to. Please, somebody help me. I worked really hard on this and I don't want it to go to waste...

Trouble Loading File From Another Computer Help
Alright, I'm currently making a Flash animation for a final exam project in school. I started it yesterday and today I thought it would be a good idea to work on it at home, so I transfered a copy of the Flash document to my Kingston USB mass storage stick. When I tried to load the said document onto the computer I'm currently on a message box popped up saying "Unexpected file format" and fails to load the file. The same thing happens when I try to load another Flash document that I had also stored on the mass storage stick.

I'm using Flash MX Professional 2004, and I'm fairly certain that the Flash program at my school is either Flash MX Professional 2004 or Flash MX 2004.

Can anyone help me?

Save XML File To User's Computer
Hallo,
I can't save my xml file, that i upgrated, to my computer . I don' t have a PHP server on my computer.
Can anyone help my ?
Thanks

import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.sendToURL;

var lijst1:XML;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("XML/xmlFile.xml");

loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete);


function onComplete(event:Event):void {
var loader:URLLoader = event.target as URLLoader;
if (loader != null) {
lijst1 = new XML(loader.data);
lijst1.appendChild(<record>
<woning>woning_append</woning>
</record>);

request.data = lijst1.toString();
request.method = URLRequestMethod.GET;
trace(request.data);
try {
loader.load(request);
}
catch (e:Error) {
trace(e," loading error");
}


} else {
trace("loader is not a URLLoader!");
}
}

Can't Open File After Transfering It From Another Computer
Hey all,

I was working on a .fla locally at my house, then transfered it across the Net to my laptop, and for some reason, MX 2004 won't recognize the file anymore - anyone have this experience? Need to get back to work on this file, and won't be able to get to my home PC for a while...thanks!

Save File To Viewer Computer
Hey,

What's the procedure to make a graphic downloadable to someones computer in flash? I have a banner ad that I want accesible to viewers so they can take it and display it on their own website.

Save A File On User's Computer
Hello,
I need to develop a Flash application which is capable of saving user's preferences on the user's computer. I've read that Flash has some security issues that prevent from doing so, how could be this worked around?

Access File On Local Computer
I'm creating an application where I want the user to be able to upload a file from his/her own computer to a server. I know that this can be done with ASP, PHP etc., but does anyone know a way to do this in Flash MX?

Thanks,

Morten

Reading File On User's Computer
Ok... I give up... Can som1 pleas tell me how i can make a browsfunction and make it so that the user can select a xml-file stored on his compute, than flash will load the xml and I can handel the code after that myself :p cheers...

Internet To Computer; Saving A File
Is there any way to create a flash file that when I open on my computer will download an image off the internet every 5 mins and save it to a specific directory?

Flash Says File Size One Thing, Computer Says Another
I noticed that on my preloader that flash is saying that the file size of my swf is 311KB, but my computer is only listing it at 100KB. Has anyone ever heard of this before?

Just in case, here is the code for my preloader.

onClipEvent(load){
function loader(){
bLoaded = Math.round(_root.mcTopContainer.getBytesLoaded()/1024);
bTotal = Math.round(_root.mcTopContainer.getBytesTotal()/1024);
bPercent = Math.round((bLoaded/bTotal)*100);
if(bLoaded == bTotal){
clearInterval(preloader);
_root.gotoAndPlay("playMovie");
}else{
_root.mcPreloader.mcLoadBar._width = bPercent;
_root.mcPreloader.tInfo = bPercent + "% of " + bTotal + "KB";
}
}
preloader = setInterval(loader,50);
}


Thanks.

Download File From Flash Movie To Computer
I know this is something simple, but i can't figue out how to tell flash to get a file and open the "open this file or save this file" window. like you're downloading a wall paper from a website and saving it onto your computer hard drive.

Copyright © 2005-08 www.BigResource.com, All rights reserved