Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

precompile macros

Status
Not open for further replies.

nickpark

Programmer
Jan 17, 2002
517
GB
Hello.

I'm wondering if I can add pre-compiler macro directives like in C.

I want to add

#IF (DEBUG==TRUE) #THEN
for (i in filenameArray) {
trace("File " + i + " is " + filenameArray );
}
#ENDIF

but if I just add the if(debug==true) in AS, then my movie performance will be affected.
Any suggestions...?

rgds,
Nick
 
I'm not the most seasoned Flash programmer, but I use trace quite a bit. I'd say just put the trace line in your normal statements and then take them out when you're done with it anyway. I'm not aware of pre-compiler directive use, but I could be wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top