I'm looking for a fail-safe way to round-trip between a Flash swf file and a text representation and back again.
One strict requirement is that the resulting round-tripped Flash swf file is exactly functionally equivalent to the original Flash swf file as long as the text representation is left unchanged.
Furthermore, the text representation must be human-readable and editable. It should be possible to make small changes to the the text representation (such as changing a text string or a class name, etc.) which are reflected in the resulting class file representation.
Is there a fail-safe way to achieve Flash swf file/text-representation/Flash swf file round-tripping given the requirements above?
is swfmill not failsafe?
that's really the tool for what you want to do ...
other than that, i can only suggest learning Haxe, and using hxformat to read the SWF and convert it to whatever kind of text representation you want ...