These are my tests:

*1.) Specifying skinClass inline:*

Looks like the wiki page has an error
https://github.com/akamud/FlatSpark/wiki/How-to-use-FlatSpark-in-your-project

flatSpark.skins.RadioButtonSkin
must actually be (no camel case in flatspark):
flatspark.skins.RadioButtonSkin

I was able to display the RadioButton with the new skin correctly like this:

<s:RadioButton label="Test 2" selected="true"
skinClass="flatspark.skins.RadioButtonSkin"/>

I did not have to import anything.  I have updated the wiki page now.

*2.) Selecting FlatSpark theme via Flash Builder > Properties > Flex Theme*

I import the frameworks/libs/flatspark.swc and select it as the theme.  I
remove all the inline skinClass references.

In this case, I don't see any of the FlatSpark skins.

I also tried importing frameworks/projects/flatspark/defaults.css as the
themefile, still no luck.

*3.) Via a CSS file*

I created a .css file and added this:

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

s|RadioButton
{
skinClass: ClassReference("flatspark.skins.RadioButtonSkin");
}

s|Button
{
skinClass: ClassReference("flatspark.skins.ButtonSkin");
}

I see the new flatspark skins fine this way.

This is on Windows 7, 64 bit, with 4.14 RC.

Thanks,
Om

On Tue, Dec 16, 2014 at 3:40 PM, Mahmoud Ali <mudd...@gmail.com> wrote:
>
> Thanks, Om.
>
> I just did another test: copied the flatspark.swc from the downloaded Flex
> SDK 4.14.0 into my "libs" project folder and again it worked.
> So it looks like it just won't work when referencing the skin from the SDK
> itself...
>

Reply via email to