Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Flash Member Controls
Macromedia Director 7 - Illustrated Complete
simBroPro
Multiple languages in the same movie.
Mac Drive
Orbital Slave
Sprite Blender - Distance
BehaviorChecker
Director 7 Demystified
Cyclic appearing and disappearing of sprite.
MediaMacros Xtras Mall
 

 

 

Behavior Find CD Drive - Using Wierd File

Added on 2/15/2000

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: Macromedia (website)

From Technote #3123 at Macromeida.com

on CheckDrive weirdfile
repeat with i = 67 to 90    
      set drive = numTochar( i )    
      set thisPath = string(drive & ":"& weirdfile)
      set myFile = new(xtra "fileio")     -- Create an instance of FileIO Xtra
      openFile(myFile, thisPath, 1)       -- attempt to open the file
      if status(myfile) = 0 then          -- status returns 0 for success
        set myFile = 0     -- Dispose of the instance
        return drive&":"
        exit
      end if
  end repeat  
  set myFile = 0      -- Dispose of the instance
  alert "Please check that the file named "" & weirdfile & "" is on your CD drive."
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail