The type selector ” was not processed, because the type was not used in the application.

The type selector ‘Alert’ was not processed, because the type was not used in the application.

Reason
The compiler is telling you that it can’t find a case where the CSS that you are including inline or in a stylesheet is being used in the application. This is regardless if it will be used at another time. If it’s not being used in the application it’s not included at run time.

To remove this warning add the following line to the command line arguments:

-show-unused-type-selector-warnings=false

Note that “unused’ type selectors aren’t included to keep the file size down.

If you want to include every CSS type selector whether it’s being used or not add the following line to the command line arguments:

-keep-all-type-selectors=true

To change command line arguments in Flash Builder navigate to Properties > Flex Compiler > Additional Compiler Arguments.

About Judah

Please note in the comments if this has helped you or not.
This entry was posted in Compiler, Compiler Warnings, Runtime. Bookmark the permalink.

One Response to The type selector ” was not processed, because the type was not used in the application.

  1. Trish Rempel says:

    Thanks, this helped!

Leave a Reply

Your email address will not be published. Required fields are marked *

Highlight your code before posting code:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">