Custom skin class

8 views
Skip to first unread message

Rose

unread,
Jun 29, 2011, 10:37:26 AM6/29/11
to Flex India Community
Hi

2day i had given a interview, asked me what is custom skin class , how
can you create,

what is correct answer ..

How can change the header skin of data drid.

Thanks,

Amar Shukla

unread,
Jun 30, 2011, 12:08:39 AM6/30/11
to flex_...@googlegroups.com
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.



mn mn

unread,
Jul 5, 2011, 11:37:22 AM7/5/11
to flex_...@googlegroups.com
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 <amarsh...@gmail.com> 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 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.

Reply all
Reply to author
Forward
0 new messages