« Follow up on Stateful vs. Stateless skinningMicrosoft Expression Blend 3 »

9 comments

Comment from: Mark [Visitor] · http://twitter.com/mark_star
Is there any chance we can see how you skinned the CheckBox using Degrafa? I can't find any examples online.

Cheers,

Mark
03/25/09 @ 14:19
Comment from: artistiq [Member] Email
If you download the source files here:
http://www.patrickhansen.com/demos/flex/SkinningTest_v2.zip
you can go into the assets directory and CheckBox_icon.mxml.
or
Here is the MXML just for the CheckBox_icon in the example:
http://patrickhansen.com/demo/flex/CheckBox_icon.mxml.zip

Sorry, my comment replies don't allow for rich text, so I will provide the links to the source files instead of just pasting it all in here.

I did create the actual checkMark icon in Adobe Illustrator, and then saved out as SVG path data via File>Save As> SVG. You do not actually need to save the file out, you can click on the "Show SVG code" and that will open up the the data in another window. You will see all types of "path fill" tags, but you can just scroll through to the very bottom and just grab the final "path fill" info after the "d". That is the path data you will take into the Degrafa "Path" tag.

Thanks to Juan Sanchez for assisting with the CheckBox_icon in Degrafa.
03/25/09 @ 14:36
Comment from: lcdazo [Visitor] · http://lcdazo.wordpress.com
Im really glad that you have this post. :D
been waiting for it. :D
03/25/09 @ 20:27
Comment from: lcdazo [Visitor] · http://lcdazo.wordpress.com
oh so you could actually do this?!

i wonder why mine is not working.. damn!

well i got to check this out again!

yipee!!!

I am loving this blog more and more...


:D

oh add this tag skinning checkbox icon in degrafa.. i think lots of people uses this as search keywords in google...


-----------------

so how about. the icon inside the buttons?

this thing i need most. :D

cheers!
03/25/09 @ 20:30
Comment from: artistiq [Member] Email
Thanks for your feedback. It seems like it is helping!

People actually read my blog?!

I will add that tag to the post - thanks for the idea.

The icon inside the buttons? I'm not sure I quite understand the question.
03/25/09 @ 20:58
Comment from: lcdazo [Visitor] · http://lcdazo.wordpress.com
in flex, you could define the icon that a button should use (instead of labels)

so, could you give an example for this one (with degrafa in flex)?

or its the same as the checkbox?

:D
03/25/09 @ 22:51
Comment from: lcdazo [Visitor] · http://lcdazo.wordpress.com
The thing about reading your examples help me see some things i missed from using degrafa. Like how you added a translate transform inside a path.

Maybe this could help me solve some problems i encountered before.

Since this actually has irritated me to some point because i cant get to position my paths where i wanted them (whenever i use paths in rendering surfaces of containers).

So. More Power and keep blogging (please!)
03/30/09 @ 19:51
Comment from: Alex Koyich [Visitor] · http://www.crazedcoders.com
Have you tried leaving your skins in a SWF, making them stateless ( creating separate classes for up/over/down/disabled states ), and using the up-skin: Embed( source="blah.swf', symbol="blah" ) method? I am curious to see if that still bogs the Flash Player down.
07/08/09 @ 11:12
Comment from: artistiq [Member] Email
@ Alex Koyich
I have kept the skins in a SWF where they are stateless (i.e. Button_upSkin, Button_overSkin, Button_downSkin, etc.), ad then using the following CSS to pull it in:
Button
{
disabledSkin: Embed(source="flex_skins.swf", symbol="Button_disabledSkin");
downSkin: Embed(source="flex_skins.swf", symbol="Button_downSkin");
overSkin: Embed(source="flex_skins.swf", symbol="Button_overSkin");
upSkin: Embed(source="flex_skins.swf", symbol="Button_upSkin");
}
This is the traditional Stateless approach using Swf's or other graphical methods such as bitmaps. And this has been proven to maintain optimal performance with CPU hit with a Flex application.

I have not created individual Classes for each state, I'm not sure if I understand the question clearly.
07/10/09 @ 13:31

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)