Let me give you some input
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,
On Thu, Jun 30, 2011 at 9:38 AM, Amar Shukla <[email protected]>wrote:
> 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.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/flex_india/-/GNn2Kk4PLDYJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.