|
|||
|
Hi, I’m very new to SWFkit.
I would like to know if there is a way to hide exe, txt, mpg files on the CD with out having them packed with main.exe. (flash movie) I have an on going project that contains 680mb worth of files. My main.exe is only 2mb and I don’t want anyone to be able to copy the files that my main.exe uses on CD to there HD. My main.exe will run from the CD so there is no installation of the program and if I pack them it takes way to long to load. Any help would be appreciated. Thanks Jean |
|
|||
|
Maybe you can do in this way:
1. Checking the current volume in the "initialize" script. If the program isn't run from a CD-ROM, just terminate. Code:
var drive = new Drive((new Folder(getAppDir())).drive);
trace(drive.driveType);
if (drive.driveType != "cdrom")
{
Dialogs.msgBox("Sorry, I cannot be run from HD");
return false;
}
Code:
//show the movie
FlashPlayer.targetSetProperty("_root", 7, "1");
|
|
|||
|
Thanks for the fast reply...
The first one will work like a charm ![]() thanks I have alot of pictures and other sound clips that i would like to hide or protect. I read somewhere that you could make a bogus folder (-->drivers or something) and rename the file as house.jpg to 28736.hde or what ever you like and the program will change the name on the fly or something like that. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|