Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2009, 12:52 PM
Junior Member
 
Join Date: Jun 2009
Posts: 7
Question Inactive Application when copied to Hard Disk

Hi, I'm a newby here.
I searched the threads and found the following code to make the Application to run only from CD ROM while making inactive when it's copied to Hard Disk.


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;
}


But it didn't work. what amendments should be done for the code to work? My Application is in D:Final/Main.exe
Reply With Quote
  #2 (permalink)  
Old 06-28-2009, 04:48 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,022
Default

Where did you put this code? It must be placed in the "initialize" script of SWFKit before the "return true".
Reply With Quote
  #3 (permalink)  
Old 07-01-2009, 10:26 AM
Junior Member
 
Join Date: Jun 2009
Posts: 7
Talking Thanks a lot

Hi Senior Member,

Thank you very much for the reply. It works fine now. God Bless you.
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 11:31 PM.


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