Skip navigation
yun@adobe
Currently Being Moderated

Default file name in Save dialog

Mar 2, 2009 6:59 PM

In our application, we need to specify a default name when calling file.browseForSave("Save"). However, it seems impossible.

file.resolvePath("<path>") does not help as if the specified path does not exist, it throws out an error.

Anyone can help? Thanks in advance!
 
Replies
  • Currently Being Moderated
    Mar 3, 2009 1:57 AM   in reply to yun@adobe
    This should help:

    var f:File = new File( "/path/to/yout/file.txt" );
    f.browseForSave();

    -c.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 14, 2009 1:57 PM   in reply to yun@adobe
    Could you put down more details of your code?
    new File() doesn't need to have the file exist. Nor resolvePath().
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2009 6:58 AM   in reply to yun@adobe

    you can try this:

     

    file.save(your_data, your_file_name);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points