3

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

algro
  • 639
  • 4
  • 8
  • 25

2 Answers2

6

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

Patrick
  • 15,702
  • 1
  • 39
  • 39
0

in Flash Builder under project properties: omit-trace-statements set to true.

then it should skip all traces.

Jevgenij Dmitrijev
  • 2,228
  • 1
  • 15
  • 23
  • 1
    omit-trace-statements set to true has [known issues](http://stopcoding.wordpress.com/2010/04/21/how-omit-trace-statements-works-or-does-not/), so it's best to use the Apparat framework. – simonrichardson Mar 15 '11 at 14:23
  • omit-trace-statements will turn off your traces as well, not only those from the verbatim swc. – daniel.sedlacek Mar 16 '11 at 13:26