But Rashmi says having it in the CSS was not working for some reason.
It just draws the rounded corners for the text box and not for the
background.
So we extended the TextInput to have this working.
Thanks & Regards
Subbu
On Apr 19, 9:57 am, Prakaz <mr.pra...@gmail.com> wrote:
> Piece of cake... I didn't realize that could be done just using styles!
>
> Rock on Flex!
>
> On 4/18/07, Arul Kumaran <arulkuma...@gmail.com> wrote:
>
>
>
> > Dear Rashmi,
>
> > It is very simple with style properties you need to set borderStyle to
> > "solid" and then set thecornerRadius
>
> > for example see the following css setting
>
> > TextInput {
> > borderStyle: solid;
> > borderColor: #777777;
> > borderThickness: 1;
> > cornerRadius: 2;
> > backgroundAlpha: 1;
> > backgroundColor: #555555;
> > color: #cccccc;
> > fontWeight: bold;
> > }
>
> > Regards,
> > Arul
>
> Can anyone tell me how to expose shadow length, strength of the shadow,
> which I have drawn in the skin class through CSS?
In your component class, declare the style in the metadata:
[Style(...)]
Then in your skin code, call getStyle() to get the style's value and
use that value instead of the hard-coded one.
Manish