开发者

AS3 Flash Compile - Exclude Functions from Compile

There is probably no way for this but does anyone know a method of excluding certain functions from a build by use of a meta tag and or compiler option?

I want to expose some functions for testing but not have them bloat the application on production. I could create separate testing classes and test for a complier directive or option and only load them if necessary but I like the idea of having the test function on the actual object (in开发者_StackOverflow中文版 the class).

Thanks

Ronan


You have to look at conditional compilation for example look to this blog post http://www.pixelate.de/blog/debug-and-release-builds-with-as3-conditional-compilation


You can use conditional compilation for that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜