A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Display and access local directory

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    272

    Display and access local directory

    Greetings all,

    I am trying to display the contents of a local network (WIN) directory so instructors can locate their folder and access the content. Content consists of audio/video, graphics, and documents of various types.

    I would do it with PHP but the IT chief has forbidden it on the network location where the content resides.

    Any tips or pointers will be greatly appreciated.

    Cheers!

  2. #2
    If you want the user to actually select a folder on the network which then displays the contents within your SWF File, you'll need to use Adobe AIR or a 3rd Party SWF2EXE Tool.

    Our software, Zinc 3.0 can do this really easily for you using our FileSystem API. For example, using Zinc 3.0, you can display a Browse File/Folder Dialog with the following command:
    Code:
    myFolder = mdm.Dialogs.BrowseFolder.show();
    The selected Folder Path would then be returned to the var 'myFolder'.

    Bare in mind that Adobe AIR and Zinc (and other SWF2EXE's) will compile a Projector File. If you want to perform this from a SWF within a HTML page, your only option would be to use something like PHP.

    Good luck with your project!
    Zinc 3.0 - Build & Deploy Desktop Applications from Flash & Flex
    True X-Platform Export to Windows, Mac OSX and Linux
    http://www.multidmedia.com

  3. #3
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    From reading a couple of your other recent posts, I know you've already looked into AIR but I haven't seen any mention of how you're trying to launch this thing...

    Is it an EXE? SWF on an intranet (i.e. on the file system) or an intranet portal where the SWF runs in an HTML page on a local (inside the firewall) web server? The vehicle for launching your SWF is the big factor in whether you'll be able to do this or not.

    If you're trying to do this from a Flash EXE, then all you have to do is create a BAT file with the command to open the folder you're interested in. You call the BAT file from your Flash app like this FSCommand("EXEC", "folder.bat");. The BAT file has to be in a special FSCommand folder beside your EXE. If you don't like the ugly DOS box then check out my FREE proxy tool and join the many thousands of other happy Flashers who have used this solution.

    If you're doing this from an EXE and you want to try using a third party projector (swf2exe) tool, there are quite a few available to choose from.

    SWF Studio http://www.northcode.com (my product)
    mProjector http://www.screentime.com
    SWFKit http://www.swfkit.com
    SWiSH Studio http://www.swishzone.com
    Jugglor http://www.jugglor.com
    Zinc http://www.multidmedia.com
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center