Simple Flex 3 File Downloader

October 26th, 2008 by Biro Barna

The title kinda says it all. Here’s a simple example on how to track the progress of a downloading file with Flex 3. The cool thing about this example is that it can be easily reproduced to work in CS3 ( or CS4 ) too. The code part is essentially the same just that in CS3 you can create your own progress bar and update that instead of the progress bar component ( that I’ve used with Flex 3 ).

This little file downloader can come really handy when your visitors are downloading larger files. You can keep your visitor busy with some interactive animations while the file is downloading and at the same time you’ll have a progress bar telling your visitor how long must he wait until the download is complete.

The working example can be viewed here: Working Example
You can download the source code from here: Flex 3 File Downloader

Simply copy-paste the code into a new Flex 3 Project and make sure that you have a folder called “assets” in your source folder and inside your “assets” folder, you have an mp.3 file called “example.mp3″. Simple as that.

Enjoy.

Posted in Flex Builder 3 Professional

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.