Search code examples
apache-flexnamespacesflex-sparkhalo

"'borderThickness' is only supported by the halo theme" Flex namespace warning


I'm trying to understand what is going on with my namespaces since I upgraded to flash builder 4.

xmlns:mx="http://www.adobe.com/2006/mxml" in the application

and in the stylesheets:

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

Everything seems to be recognized correctly, however, I get a warning that says:

"borderThickness" is only supported by the halo theme

(which I thought was in the mx theme).

Now, when I try xmlns:s="library://ns.adobe.com/flex/mx" then it doesn't recognize anything. Is there something I might be doing wrong here or confusing?


Solution

  • as quoo stated above, you need to make sure you change the ns declarations in your mxml files to:

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

    xmlns:mx="library://ns.adobe.com/flex/mx"

    xmlns:s="library://ns.adobe.com/flex/spark"

    That being said however, I have noticed some wonkiness with FB4 when you add these namespaces for the first time to a file that was originally built in FB3. Sometimes it will not code-complete some old halo components. On mine, it will mysteriously create a fictitious "mx1" namespace that I haven't even declared. Most times I've found that closing the editor window and doing a project clean, then re-opening the file seems to fix the problem.