|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|