Updates

July 2, 2008
Tags: , ,

I just added a projects page that lists my current and past projects.  It’s still a work in progress, but it’s getting there.  Also, I recently pushed out the source of my Flex-based FileBrowser application, available at http://adam-carter.net/code/flex/FileBrowser/.  Note that documentation is still pending.

9 Responses to “Updates”

  1. hmm nice code!!!Maybe you can, please, provide full package with example??I mean flex project in .zip file which I can simply import to flex??
    or any docs will be great!! Thanxx!!

  2. I’ve created a zip file for you at http://adam-carter.net/code/flex/FileBrowser/zip/02-06-2009.zip.

    Unfortunately, I’ve never found the time to write proper documentation for this code. However, I think that most of it should be reasonably easy to understand.

    Good luck,
    –Adam

  3. Wow!! Thank You very much!!
    I’m happy to play with your code!!!
    its cool!!

  4. Hi Adam

    Great piece of work, I a currently trying to build a flex project, and by trying I mean I just started learning flex 2 days ago.

    I have managed to get your component into my flex project and onto one of my applications, and I when I upload the file, it works. However it does not display the directory with the files in it, nor does the “create Directory” function seem to work.

    I would really appreciate your assistance, and some pointers I can look for to try and troubleshoot the problem and come up with a solution.

    Thanks in advance!

  5. Let me take a look and get back to you…

  6. Thanks Adam, looking forward to what you find.

    I did pickup references to a /webservices/*.php folder that’s not in the package. Could this be the missing link?

  7. The only reference to “/webservices/*” that I found was for the preview click, and you are correct: it isn’t in the file repository. I ripped this code from a project that I was working on at the time, and apparently, forgot to include that file. However, lacking that file shouldn’t break directory browsing. Also, you’ll need to remove line 3 in the “fbFunctions.php” (reference to helperfunctions.php). Again, it’s missing from the repository, but I don’t think that you’ll need it.

    Until I get around to doing a writeup on getting this thing to work on a fresh system, I would start by making sure that the web service works correctly. First, visit “fb.php” in your browser and make sure that it loads correctly. If it does, try to consume the web service directly through PHP. If that works, then the location in Flex must be wrong. Check “webServicePath” (line 12) in FbWebService.mxml.

    Also note that depending on your build of PHP, you might have to change some of the web service stuff. The place that I wrote this for didn’t have PHP’s built-in SOAP library, so I used the nuSOAP. Unfortunately, nuSoap breaks when the built-in SOAP library is installed. Check your php_info() to see if this is the case.

    Stay tuned, and good luck.
    –Adam

  8. Okay,

    So this is all that I had to do in order to get the FileBrowser (minus preview) working in flex. Also, I made a small change in the code so be sure to download the latest source/zip file. After doing so, this is all that you should have to do:

    1. Start a new flex project
    2. Add the Flex source files (“com”) to your project’s src folder
    3. Add the PHP files to your project’s src folder. After doing so, you should see “fbWebService.php” in the root src folder (not in a subdirectory).
    4. On your main page, add a FileBrowser in your MXML ().
    5.) Run the project.

    Obviously, there’s some configuration options that you probably need to set. You can change the target webService URL in the FileBrowser object. Also, you might want to change the root directory for file browsing (in fbWebService.php) as the default is to allow you browse the entire document tree for your web server (BAD IDEA!).

    You can download the very basic project that I created at: http://adam-carter.net/code/flex/FileBrowser/zip/example%20project.zip.

    Also, all of the above assumes that you have a web server with PHP properly configured on your machine.

    –Adam

  9. Hi Adam

    Thanks for all your help, it works!!!!! There are is a slight issue with the file previewing, but I reckon I can solve that.

    All in all, I owe you big time! Let me know when you are in SA and I’ll get you a cold one!!!!

    Thanks once again! Much appreciated

Leave a Reply