Search code examples
actionscript-3traceswc

stop traces in swc-library (actionscript3)


There are a lot of traces embedded in a swc-library I'm using in flash-builder. Can I get rid of them without touching its code? How?

Thanks


Solution

  • You can use the stripper tool from Joa Ebert Apparat framework :

    stripper -i my-swc-library.swc
    
    Stripper
    

    This tool removes all debug information from a SWF file. It is a type-safe removal keeping
    side-effects. This means a loop like this while(iter.hasNext) { trace(iter.next()) } Would be rewritten like while(iter.hasNext) { iter.next() } Stripper removes also all debug releated bytecode. Example: stripper -i input.swf -o output.swf stripper -i inputAndOutput.swc