Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2004, 08:57 PM
Junior Member
 
Join Date: Jul 2004
Posts: 6
Default Hide files on a CD

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
Reply With Quote
  #2 (permalink)  
Old 07-26-2004, 01:10 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Hide files on a CD

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;
}
2. protecting you swf files. Making your swf movies invisible and calling a script in frame 1, say its name is "showme". In swfkit creating a "showme" script and adding the following code

Code:
//show the movie
FlashPlayer.targetSetProperty("_root", 7, "1");
If the end users open the swf movies outside the main program, they will see nothing.

Reply With Quote
  #3 (permalink)  
Old 07-27-2004, 05:19 AM
Junior Member
 
Join Date: Jul 2004
Posts: 6
Default Re:Hide files on a CD

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.
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 03:17 AM.


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.