ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers

Problem

You want to monitor the progress of a file as it uploads to your server.

Solution

Listen for a progress event.

Discussion

You can monitor file upload progress, much as you can monitor a file download progress. A FileReference object dispatches progress events when the file is uploading. When the file has completed uploading, it dispatches a complete event. See Recipe 23.3 for details.

See Also

Recipe 23.3

Категории