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
Volume Control-Slider
3 State Button
Countdown Timer
Faux Marquee Tool
Director in a Nutshell
E-mailExec 2.5
Mastering Macromedia Director 6
Returns Rect of visible PDF doc within an Impressario sprite
DiskJockey CD-ROM Builder
ProgressCopy
 

 

 

Behavior Delet an Existing 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 #3192 at Macromedia.com

on deleteFile whatFile
    if objectP(myFile) then set myFile = 0  -- Delete the instance if it already exists
    set myFile = new(xtra "fileio")     -- Create and instance of FileIO
    if the moviePath = "" then     --  
        alert "No moviePath.  Please save your movie and try again."
    else
    openFile (myFile, the moviepath& whatFile,0)     -- Open the file
    delete (myFile)     -- Delete the file
    alert "Status:"& error(myFile,status(myFile))     -- display error message
    end if
    closefile (myfile)     --  Close the file
    set myFile = 0     -- Dispose of the instance
end

 


Contact

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

Send e-mail