开发者

AS3 Flash Compile - Exclude Functions from Compile

开发者 https://www.devze.com 2023-03-11 20:15 出处:网络
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?

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

精彩评论

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