some tools based on the code from http://www.swftools.org/