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?