开发者

stop traces in swc-library (actionscript3)

开发者 https://www.devze.com 2023-02-17 02:17 出处:网络
There are a lot of traces embedded in a swc-library I\'m using in flash-builder. Can I get rid of them withou开发者_JAVA技巧t touching its code? How?

There are a lot of traces embedded in a swc-library I'm using in flash-builder. Can I get rid of them withou开发者_JAVA技巧t touching its code? How?

Thanks


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


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

then it should skip all traces.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号