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
Set DirectToStage of a Animated Gif CastMember
Generic behavior to set Wallpaper
Set Linked Property of a Flash member
AdjustColors
Set ButtonsEnabled Property of a Flash Cast member
FlashMaster
Change Bitdepth
Marks button, 4 picts with rollover, rolloff
Coloring Book
Print Formatted and HTML Text Using a Browser
 

 

 

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

 


Contact

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

Send e-mail