How to get FDT to ignore some “erroneous” code

December 19th, 2009 by Slav

Have been using FDT for about 3 and a half years now, on many occasions I came across a code that , although perfectly compilable (both by mxmlc and flash IDE), FDT thought it contained errors.

For example when code contained some “clever” trinary operator arguments, or a javascript code segments wrapped in CDATA …

Anyway, I came across a simple way to make FDT to ignore such code.

If you place the problematic code inside a /*FDT_IGNORE*/ …. /*FDT_IGNORE*/ comments, FDT will not parse such code and therefore will not mark it as code containing syntactic error. Goodbye red marks !

However .. on the other side, if such code contains a functions or variables that other classes refer to, FDT will not be able to find those references in the “ignored” sections.

So use it with caution !

Posted in AS3, FDT, flash

3 Responses

  1. Jay

    Been using FDT since early 1.0 versions and never knew that trick. I guess they need to do something with their documentation.

    Thanks dude!

  2. FlashPad » Blog Archive » How to get FDT to ignore some “erroneous … | JAENUDIN TAUFIK PERSONAL BLOG

    […] link: FlashPad » Blog Archive » How to get FDT to ignore some “erroneous … var addthis_pub = ‘exil0r’; var addthis_language = ‘en’;var addthis_options = ’email, favorites, […]

  3. subBitte