Finding data files in local directory

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Finding data files in local directory

    Say I have a bunch of XML files in the directory with my web app (or in a
    subdirectory) and I want the app to be able to create a list of all available
    files, without resorting to a separate index.xml file to list them. How do I do
    that? They'll be named according to a certain convention, like FC080415.xml
    where the numbers represent the date created, in year-month-day format so
    they're in chronological order.

    If I put them in a directory without an index.html file and make a URLRequest
    to that directory, I can get a directory listing with a bunch of junk mixed in
    and could probably write some code to separate the file names out, but that
    can't be the "right" way to do it. Flex 3 has a File class that has functions
    for getting a directory listing, but it only works for AIR apps.


    Xopods Guest

  2. Similar Questions and Discussions

    1. Local Directory for Contribute on Windows XP
      Hi All, I was just wondering if someone could shead some light on where Contribute stores it's temp files on the computer when it opens a page up...
    2. HttpWebRequest not finding SSL client certs in the 'Local Computer' store
      Hi Hari, Is your account an administrator account on the client computer? Luke Microsoft Online Support Get Secure!...
    3. Finding current directory?
      How can I find out the full directory path (i.e. c:\path\to\file) of a file? I'm logged into a server and the of course, I have an FTP directory...
    4. Protect local data files from download?
      Just make sure that the extension of the file is unkown to IIS. Give the file a name like data.xyz or something. Then IIS will never serve it up...
    5. Can't locate @INC & not finding files in local directory
      Hello - I've got several Perl scripts that use custom perl modules which are called from routines that are in the same directory as the scripts....
  3. #2

    Default Re: Finding data files in local directory

    In the standalone player you can not do file operations unless you compile your
    app with the file system access i.e. -use-network= false.

    If you app is deployed over a webserver and is opened in a browser. You should
    use some other mechanism to fetch it from the server (you can not access the
    file system from the player)

    You can use a jsp/php/coldfusion or something else to return the list of file
    name?

    Gaurav J Guest

  4. #3

    Default Re: Finding data files in local directory

    That's what I was afraid of. I was hoping that I wouldn't have to learn how to have Flex interact with JSP quite yet, since it's another layer of complexity, but I may not have any choice.
    Xopods Guest

  5. #4

    Default Re: Finding data files in local directory

    If the Flex app runs under AIR instead of in a browser, it can access the local file system.

    Tracy
    ntsiii 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