Flex 4 Panel Skinning

Hi All,

I'm trying to find out the best way to skin a Panel component in Flex 4.  The preferable method would be using graphics from Illustrator CS4 which I have already tried by exporting an .fxg file into Flex.  The problem i'm having isnt really getting the graphics into the panel, its making it so that when the panels resize in the application, my skin doest distort ie. the rounded corners stay the same ratio.

I have attached a simple panel image I have created that i would like to be used as a panel component skin to give you and idea of what im trying to acheive.

Any help would be appriciated.

Thanks.

orange-top.jpg
RenAndStimpyAsked:
Who is Participating?
 
RenAndStimpyAuthor Commented:
Its ok I have found the solution.

You just need to embed the image like this...

backgroundImage="@Embed(source='./style_assets.png', scaleGridTop=50,scaleGridBottom=76,scaleGridLeft=75,scaleGridRight=510)"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.