Take the 2-minute tour ×

I recently upgraded to the latest version of flashbuilder. Imported my the project I was working on and now it is riddled with errors. The errors I am getting that I don't understand are that it no longer recognizes the mx namespacse, but now has an mx1 namespace. AnThis is really frustrating since I was almost done iwth this project and now it seems like things have changed. What has changed in the new flashbuilder that would cause this?

share|improve this question
Did you upgrade from FlexBuilder 3 to FlashBuilder 4? –  Robusto Apr 1 '10 at 20:17
just to clarify, in my components, flash builder is recognizing mx.. i.e. <mx:Component>. But in my css, the stylesheets don't recognize mx.. but mx1 (in the codehinting) wha? –  pfunc Apr 1 '10 at 20:18
yes, i upgraded from fb3 tofb4 –  pfunc Apr 1 '10 at 20:18

2 Answers 2

up vote 2 down vote accepted

You must now use namespace references in css files with Flex 4.

Per the examples on Adobe's site...

    @namespace "library://ns.adobe.com/flex/spark";
    @namespace cx "com.mycompany.*";

    Button { color: #990000; }
    cx|MyFancyButton { color: #000099; }

Please read more about the new changes here http://opensource.adobe.com/wiki/display/flexsdk/CSS+Namespaces+Support

share|improve this answer

Ok, so apparently if I use the namespace "library://ns.adobe.com/flex/halo", it didn't work. But when I use "http://www.adobe.com/2006/mxml", it works

share|improve this answer

Your Answer


