8 Replies Latest reply on Jun 4, 2013 8:42 AM by bobbybeag

    "expected a definition keyword..." in CSS

    NonTakenUserName Level 1

      I created a CSS file in Flex Builder 4 and, as soon as it was created I got the following error:


      Syntax error: expected a definition keyword (such as function) after attribute namespace, not s


      This is all the code that currently exists in the file:


      /* CSS file */

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

      @namespace mx "library://ns.adobe.com/flex/halo";


      If I comment out the @namespace s line, I get the same error with "not mx" instead. The project is being compiled with SDK 4.1, any idea what may be happening? If I remove the @namespace lines, I get "Syntax error" for anything I add.


      Just in case it helps: the project was created using SDK 3.1, which was later changed to 4.1