This mechanism called "Conditional compilation" http://livedocs.adobe.com/flex/3/html/compilers_21.html#246171 The same, but for Flex 4 http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7abd.html
2011/3/30 savioseb <[email protected]>: > Hi, > > is there any compiler level code switch I can put in flex such that > one code gets executes and the other does not? > > Like from my experience in Java > ------------------ > > public static final boolean DEBUG = true; > > ----------------- > > in the compiled code, the if(DEBUG) switch does not exist - instead > this is already analysed by the compiler and the code is either put > into the compilation or not. > > Is there any such mechanism in flex? > > Thanks! > Savio > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- Oleg Galaburda http://blog.actualwave.com/ http://jsinterface.googlecode.com/ http://guibuilder.org/ -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

