Conditional compilation is not the full equivalent of #ifdef in C. I don't remember if variables are off-limits, but they might be.
From: [email protected] [mailto:[email protected]] On Behalf Of jimmy5804 Sent: Friday, January 30, 2009 8:46 AM To: [email protected] Subject: [flexcoders] Conditional compilation for variable declarations I'm able to use conditional compilation for functions by prefacing them with CONFIG::xxx and other blocks by wrapping them in if(CONFIG::xxx), but I'm not sure how to do conditional declaration of class variables without making the whole class conditional. If, for example, I have a single SQL class variable in a class that's otherwise portable between Flex and AIR, do I need to create separate classes for the two frameworks, or is there a convenient way to conditionally declare the SQL variable? TIA

