Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2006, 01:10 AM
Junior Member
 
Join Date: Sep 2006
Posts: 3
Default Is this a File object bug? Expiry option has bugs?

Hi Administrator,

I use SWFKit Pro 3.0 and recently been using it to create trial version software.
My question is :
1. I used enable expiry and set it to 30 days, I build the exe then run it, it gives me 30 days trial, but if before 30 days, i set the clock back to 1st day, I can have another 30 days....
This is not right, is it ?

2. I try to use File Object to create new file, but what it gives me is new "FOLDER"?

The code is newfile = new File("C:\\Windows\\newfile.txt");
and it created a folder called "newfile.txt" under windows

Can anyone explain what's wrong with these two things? I could make mistakes.....though
Reply With Quote
  #2 (permalink)  
Old 10-09-2006, 07:27 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Is this a File object bug? Expiry option has bugs?

1. No, it is not right.

2. To create a file and write data to it, you must use the "FileStream" object. The "File" object can only be used to handle an existent file.
Reply With Quote
  #3 (permalink)  
Old 07-21-2010, 12:32 PM
Junior Member
 
Join Date: Jul 2010
Posts: 1
Default

Also in flex builder 3 File.exists(filename) gives an error because it cannot find the function as static.

I intended to use the function to know when I could create a File object since it only handles existing files...

Also have a problem deleting the file. The remove() function does nothing deleting a file that already exists...

var f:File = new File("c:\\a.xml");
f.remove();

This is the code i have.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.