Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2004, 04:32 AM
Junior Member
 
Join Date: Dec 2004
Posts: 1
Default Variable In Object Q....

Hey all, i'm wondering how I can use a variable in an object. I want to do this....

f = new Drive(variable);

if I use
f = new Drive("C:");
it will work. But I need to find the letter of that drive (which i've done in the variable) and stick it into the object. I'd appreciate any help!
Reply With Quote
  #2 (permalink)  
Old 12-13-2004, 07:29 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Variable In Object Q....

Code:
var driveName = "c:";
var drive = new Drive(driveName);

trace(drive.driveLetter, ':\t', drive.driveType);
trace('\t', drive.fileSystem);
trace('\t', drive.isReady);
trace('\t', drive.rootFolder);
trace('\t', drive.serialNumber);
trace('\t', drive.totalSize);
trace('\t', drive.volumeName);
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 07:31 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.