Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
QTGrabSprite
LipSync
3DPI
Larger Graphics in Director than outside
An Unofficial Brief History of Director
Lingo Sorcery
How To Change The Loader
Hex Display
Image Xport
A cool button
 

 

 

Behavior Get CD ROM Drive letter

Added on 8/8/2003

 

Compatibilities:
behavior D7 D8 D8_5 D9 UK US

Required Xtras:
FileXtra

This item has not yet been rated

Author: steve1h

This definitely checks all the drives and pulls out the cd-rom drive letter and places it into a field. You will need fileXtra3. Does not work in shockwave due to security issues.

Download PC Source
property f,ls,i,a
on beginsprite me
  f = xtra("FileXtra3").new()
  --list of volumes stored in ls
  ls = f.fx_volumesToList()
  repeat with i = 1 to ls.count
    a = getat(ls,i)
    put a
    if f.fx_volumeIsCDROM(a) then
      put f.fx_volumeIsCDROM(a)
      put a &&"drive found"
      member("drive").text=a&&"drive found"
      exit
    end if
  end repeat  
end
on exitFrame me
  go to the frame
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail