2 Replies Latest reply on Mar 22, 2012 10:00 AM by JAXIMFLASH

    Creating a base Application class in Library project?

    JAXIMFLASH Level 1

      I'd like to create a base application that other applications can be based off of.

      I have created a library project and created a base ViewNavigatorApplication class. In this base application class, I implement some styles, but I am getting warnings that state "CSS type selectors are not supported in components: [name of component]"

      I have copied and pasted a portion of this base application class below.


      How can I create a base application in a library project and avoid getting these warnings?




      <?xml version="1.0" encoding="utf-8"?>

      <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"







                          @namespace s "library://ns.adobe.com/flex/spark";

                          s|Application //WARNING SHOWS HERE


                                    color: #000000;

                                    backgroundColor: #000000;


                          s|Label  //WARNING SHOWS HERE


                           color: #FFFFFF


                          s|View //WARNING SHOWS HERE


                                    backgroundColor: #000000;




                          { //WARNING SHOWS HERE

                                    content-background-color: #000000;

                                    selection-color: #636363;

                                    symbol-color: #9B9B9B;

                                    color: #D8D8D8;

                                    chromeColor: #000000;