2 Replies Latest reply on Jul 2, 2006 9:44 AM by

    Can I disable certain warnings?


      I want to never hear about 3596 warnings. Can I tell it to never warn me about those? I know I can filter the warnings list in the problem panel, but I still get the little triangles on the gutter of my editor..

        • 1. Re: Can I disable certain warnings?
          Rebecca_Hyatt_-Adobe
          In the project properties dialog (under Flex Compiler) there's a checkbox labelled "Enable warnings" which should let you kill the whole mess of them at once.

          For a more targeted approach, you can add things to the "Additional compiler arguments" that restrict which types of warnings you see. Running "mxmlc -help list" on the command line will list all of your options. You may need to restart FlexBuilder after setting these for the first time.

          Rebecca
          1 person found this helpful
          • 2. Re: Can I disable certain warnings?

            I looked at the compiler options. It doesn't look like I can specifically kill 3596 warnings, without killing all other warnings of it's type ("Actionscript warnings").


            -benchmark
            output performance benchmark
            -compiler.accessible
            alias -accessible
            generate an accessible SWF
            -compiler.actionscript-file-encoding <string>
            alias -actionscript-file-encoding
            specifies actionscript file encoding. If there is no BOM in the AS3
            source files, the compiler will use this file encoding.
            -compiler.context-root <context-path>
            alias -context-root
            path to replace {context.root} tokens for service channel endpoints
            -compiler.debug
            alias -debug
            -compiler.external-library-path [path-element] [...]
            alias -el
            list of SWC files or directories to compile against but to omit from
            linking (repeatable)
            -compiler.fonts.max-glyphs-per-face <string>
            alias -max-glyphs-per-face
            -compiler.include-libraries [library] [...]
            alias -include-libraries
            a list of libraries (SWCs) to completely include in the SWF
            (repeatable)
            -compiler.incremental
            alias -incremental
            enables incremental compilation
            -compiler.library-path [path-element] [...]
            alias -l
            list of SWC files or directories that contain SWC files (repeatable)
            -compiler.locale <string>
            alias -locale
            specifies the locale for internationalization
            -compiler.namespaces.namespace <uri> <manifest>
            alias -namespace
            Specify a URI to associate with a manifest of components for use as
            MXML elements (repeatable)
            -compiler.optimize
            alias -optimize
            Enable post-link SWF optimization
            -compiler.profile
            alias -profile
            generate a movie that is suitable for performance profiling
            -compiler.services <filename>
            alias -services
            path to Flex Data Services configuration file
            -compiler.show-actionscript-warnings
            alias -show-actionscript-warnings
            runs the AS3 compiler in a mode that detects legal but potentially
            incorrect code
            -compiler.show-binding-warnings
            alias -show-binding-warnings
            toggle whether warnings generated from data binding code are
            displayed
            -compiler.show-deprecation-warnings
            alias -show-deprecation-warnings
            toggle whether the use of deprecated APIs generates a warning
            -compiler.source-path [path-element] [...]
            alias -sp
            list of path elements that form the roots of ActionScript class
            hierarchies (repeatable)
            -compiler.strict
            alias -strict
            runs the AS3 compiler in strict error checking mode.
            -compiler.theme [filename] [...]
            alias -theme
            list of CSS or SWC files to apply as a theme (repeatable)
            -compiler.use-resource-bundle-metadata
            alias -use-resource-bundle-metadata
            -file-specs [path-element] [...]
            a list of source files to compile, the last file specified will be
            used as the target application (repeatable, default variable)
            -help [keyword] [...]
            keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a
            search term
            -licenses.license <product> <serial-number>
            alias -license
            (repeatable)
            -load-config <filename>
            load a file containing configuration options (repeatable)
            -metadata.contributor <name>
            alias -contributor
            A contributor's name to store in the SWF metadata (repeatable)
            -metadata.creator <name>
            alias -creator
            A creator's name to store in the SWF metadata (repeatable)
            -metadata.date <text>
            alias -date
            The creation date to store in the SWF metadata
            -metadata.description <text>
            alias -description
            The default description to store in the SWF metadata
            -metadata.language <code>
            alias -language
            The language to store in the SWF metadata (i.e. EN, FR) (repeatable)
            -metadata.localized-description <text> <lang>
            alias -localized-description
            A localized RDF/XMP description to store in the SWF metadata
            (repeatable)
            -metadata.localized-title <title> <lang>
            alias -localized-title
            A localized RDF/XMP title to store in the SWF metadata (repeatable)
            -metadata.publisher <name>
            alias -publisher
            A publisher's name to store in the SWF metadata (repeatable)
            -metadata.title <text>
            alias -title
            The default title to store in the SWF metadata
            -output <filename>
            alias -o
            the filename of the SWF movie to create
            -runtime-shared-libraries [url] [...]
            alias -rsl
            a list of runtime shared library URLs to be loaded before the
            application starts (repeatable)
            -use-network
            toggle whether the SWF is flagged for access to network resources
            -version
            display the build version of the program
            -warnings
            toggle the display of warnings