Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default exporting files 2

    I export some image cast members to the hard drive of the users maching using SharpImage extra. It does it automatically with no windows explorer to choose a location of the files. These are specified in the command.

    Is there a way of finding out what the main drives are on the users machine.

    or

    Is there a way that I could use something to open the windows explorer and get the user to locate a directory they want to use to store the exported image files (perhaps they could actually save something else like a blank text file????). Once they have located the directory I would need to return the absolute path to that location to use in the command to save the images.

    Any help thanks in advance. I'm on a deadline with this one so any help is very welcome. Thanks Bill Glance.



    billbones webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Exporting Font files
      I have recently bought a new computer and re install Illustrator 9, but I am missing a font file that was installed a few years ago in Illustrator....
    2. Exporting to PDF, large files
      I'm a student and have started using In Design 2.0 in Windows XP to create dome documents for my assignments, which involve a lot of text and images....
    3. Problem with Exporting .eps files
      A client can't use the .eps-files I send him from Illustrator CS. He can see them but not in the vector form he needs to be able to edit them...
    4. Exporting/Saving as EPS files
      Bloody program!! For some inexplicable reason, Freehand has decided to no longer allow me to save or export graphics as EPS files. It just comes up...
    5. FH10: exporting pdf files
      I have a freehand 10 file. In this file, i used Tahoma font. But when i export this file in pdf format, on the pdf file characters like ò à é...
  3. #2

    Default Re: exporting files 2

    You can use one of several xtras to display a file save dialog box

    The most common ones are fileio, MUI (included in Director), fileXtra (free, third party) and Buddy API (2 functions free)

    These all call up a standard system dialog for the user to select a location & filename path for you to use with your export code

    hth


    johnAq


    ----fileIO example code

    on saveFile
    myFileio = new(xtra "fileio")
    saveFileName = myFileio.displaySave("Save File", "untitled")
    if saveFileName = "" then
    alert "No file name selected"
    else
    --save file code here
    end if
    end






    johnAq webforumsuser@macromedia.com Guest

  4. #3

    Default Re: exporting files 2

    Thanks for that...worked first time.

    For anyone else who comes accross the problem heres the full code.

    It saves a jpg or other bitmap file to disc using SharpExport Xtra but instead of saving automaticaly to disc where you specify in the hard code it opens a standard windows explorer window and lets the usr choose the location. The benefits of doing it this way are that it is free.

    on Save_image_to_disc
    myFileio = new(xtra "fileio")
    saveFileName = myFileio.displaySave("Save File", "file_name")
    tcn = saveFileName.char.count
    saveFileName = saveFileName.char[1..(tcn - 4)] --taking off the .txt suffix whcih it will automatically add????!!!!!!
    if saveFileName = "" then
    alert "No file name selected"
    else
    xtraInst = new (xtra "SharpExport") -- Creating an Xtra instance:
    result = xtraInst.exportJPG (member "Image_member", saveFileName & "_image.jpg", 70) end if
    end



    billbones webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139