Spark architecture = component + skin
Component ----this includes logic for creating component
Skin----this gives look to the component, just like fancy items
How to build a custom component?
-Its easy, you can create custom skin for any displaycompoent.
1) create skin class it may be of Skin or Spark based
2) add meta data tag which
<fx:Metadata>
[HostComponent("component.yourcomponentname")]
</fx:Metadata>
3) Define states
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
4) Fill colour using different shapes
Eg: rectangle, eclipse, path
Thats it,
Google is your friend and its free :)Anyways, You can create a custom skin class in FlashBuilder 4 easily. Go to File -> New -> MXML Skin and do whatever you want to achieve.
To view this discussion on the web visit https://groups.google.com/d/msg/flex_india/-/GNn2Kk4PLDYJ.--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.