Flex namespace and CSS and Skins

Dear Experts,

This is bit of a newbie question that I just not seeing correctly and I am pretty sure it will be 1 liner fix.

I am creating an Adobe AIR application, I found a skin/CSS from an open source that I would like to use. At this point I created an empty project and set the Style to the CSS. I have this warning that I am just not understanding need ing to provide a namespace?

Description      Resource      Path      Location      Type
Type 'Button' in CSS selector 'Button' must be qualified with a namespace.      GreenSkin.css      QuickCall/src/assets/skin      line 65      Flex Problem


Please can someone help me on this? Code attached for the AIR application and snippet from CSS.

Thanks for your help.


#########   AIR   File     ############ 

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
					   xmlns:s="library://ns.adobe.com/flex/spark" 
					   xmlns:mx="library://ns.adobe.com/flex/halo">
	
	<fx:Declarations>
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	</fx:Declarations>
	<fx:Style source="/assets/skin/GreenSkin.css"/>
</s:WindowedApplication>


##########CSS File Snippet#########

/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";




/*
//------------------------------
//  global
//------------------------------
*/
global{
	
	color: #5a5c59;
	themeColor: #B2DC32;

/*
//------------------------------
//  Button
//------------------------------
*/
Button
{
	disabledSkin: Embed(source="AeonGraphical.swf", symbol="Button_disabledSkin");
	downSkin: Embed(source="AeonGraphical.swf", symbol="Button_downSkin");
	overSkin: Embed(source="AeonGraphical.swf", symbol="Button_overSkin");
	upSkin: Embed(source="AeonGraphical.swf", symbol="Button_upSkin");
}

/* 
//------------------------------ 
//  ButtonBar 
//------------------------------ 
*/ 

etc.......

Open in new window

LVL 12
Joel_SiskoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vindys80Commented:
As you have two namespace in same css, you might need to declare button referring to namespace

http://opensource.adobe.com/wiki/display/flexsdk/CSS+Namespaces+Support

Thanks,
Vindys
mx|Button
{
        disabledSkin: Embed(source="AeonGraphical.swf", symbol="Button_disabledSkin");
        downSkin: Embed(source="AeonGraphical.swf", symbol="Button_downSkin");
        overSkin: Embed(source="AeonGraphical.swf", symbol="Button_overSkin");
        upSkin: Embed(source="AeonGraphical.swf", symbol="Button_upSkin");
}

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joel_SiskoAuthor Commented:
So since what I have was built for Flex 3.X is there a way to easily convert the CSS for 4.X?

Joel
vindys80Commented:
Hi Joel,

I am not sure about the change in 3.X and 4.X. But I think this was a much referred change in Flex 4

http://blog.crankybit.com/notes-migrating-from-flex-3-to-flex-4/

Thanks,
Vindys
Joel_SiskoAuthor Commented:
Your original link clarified the issue, not a big issues in the scheme of things, but dang a hard one when you have little idea of what is going on.

Thanks for the help.

Joel
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.