[Flashcoders] Can a class be conditionally included with an if statement

2006-03-03 Thread Manuel Saint-Victor
Would something like this keep a file from being included in compilation ?

If(debug){
   debugData:TestData=new TestData();
}

My goal is to have some class files that are not compiled if that value is
set to debug=false.  Or does the mere mention of the TestData class make it
get packaged in my swf?

Mani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Can a class be conditionally included with an if statement

2006-03-03 Thread Johannes Nel
that class will get included
search for a pre-compiller

On 3/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 Would something like this keep a file from being included in compilation ?

 If(debug){
debugData:TestData=new TestData();
 }

 My goal is to have some class files that are not compiled if that value is
 set to debug=false.  Or does the mere mention of the TestData class make
 it
 get packaged in my swf?

 Mani
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com