Here's another article that might help:

http://www.adobe.com/devnet/flex/quickstart/embedding_assets/

When using Flash assets you can either set the scale9 grids in Flash
or you can do it in the Embed in your CSS. I usually use Flash and set
the grids in Flash as well. You can edit the scaleGrid by editing the
symbol, but make sure when you make the symbol you check the box that
says something like "Use 9scale guides".

Working with rounded corners you'll want to set the left scaleGrid
right after the end of the top left curve, for the right scaleGrid set
it right before the top right curve starts, for the top scaleGrid set
it right after the top left and top right vertical curve ends, and for
the bottom scaleGrid set it before the bottom left and bottom right
vertical curves start. The artwork inside that "box" or boundaries
will be the content that stretches, while everything outside of it
will not.

Here's a snippet from LiveDocs that has good visuals of what I'm
talking about:

livedocs.adobe.com/flex/2/docs/00000976.html

Hope that helps.

Juan
scalenine.com
degrafa.com


--- In [email protected], learner <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I am trying to use the assets from the my own swf to skin flex
components
> just as done in "sample skin files" from adobe and  have  also
studied the
> fla templates  from http://www.scalenine.com/.
> but the problem I am facing to skin the components with rounded corner.
> The article form "
> http://www.adobe.com/devnet/flex/articles/flex_skins_04.html"; adobe says
> that when we are using the rounded corner assets from swf, u will
have to
> align grids to corners, etc etc.
> I am not understanding exactly what they mean.
> Only aligning grid will work or do I have to specify in css also 
something
> like :
> 
> Button
> {
> disabledSkin: Embed
>    (Embed(source="/Styles/asessts/felixStyle.swf",
symbol="RollOverEventItem");
>             scaleGridLeft="4",
>             scaleGridTop="4",
>             scaleGridRight="78",
>             scaleGridBottom="18");
> 
> }
> 
> 
> Can somebody point me in right direction. If they mean that only
aligning
> the gird in fla is enough..then what exactly I have to do in flash file?
> 
> Regards
> PS.
>


Reply via email to