There are many commercial soft to extract resources (images and sounds etc) from flash SWF files. There is also a free crossplatform console toolset for compile and decompile SWF: swftools.
In particular, this package includes tools swfextract и swfdump to extract resources from the SWF and decompilation SWF files with getting list of elements with dumps. The disadvantage of these tools is that the first one can't automatically extract all resources from a file and the second can't store hex-dumps to binary files.
To get rid of these disadvantages I wrote a python-script that:
All these operations are performed in a single step and as a result from the source SWF produce large amounts of resource files. And some of these files may be duplicates. To remove duplicates, you can use utility such this.
swf-extract.py <filename.swf> [<outdir>]
python swf-extract.py <filename.swf> [<outdir>]
First argument filename.swf defines name of unpacking swf-file, second argument outdir is optional and defines output path for extracted resources, If is isn't specified, the extracted files will be stored to the same directory with source swf-file.