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