Atm
Atm

Reputation: 183

Flash Builder 4.5 IFDEF

As there any abilities for IFDEF compiler preprocessing? So that if it is bin-debug, some lines are in the code, if it is bin-release, those lines disappear from code?

Upvotes: 0

Views: 652

Answers (1)

Patrick
Patrick

Reputation: 15717

It's called conditional compilation so part of your code can be include/exclude depending on flag value.

Here an example for building a debug/release code : http://www.pixelate.de/blog/debug-and-release-builds-with-as3-conditional-compilation.

And here another example with a video for flash builder 4 : http://www.youtube.com/watch?v=Ew6h5iIdue4

Upvotes: 1

Related Questions