are you using mx components or spark components?
<mx:Button> or <s:Button>?
I am not sure whether we can set the background image of a button in flex 4
for mx components but if you specify the background image in all 3 states
[up over down] it should work fine. something like this


<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Button
{
up-skin:Embed(source='Move2Red.png');
over-skin:Embed(source='UpDown1Yellow.png');
down-skin:Embed(source='Move2Red.png');
}

</fx:Style>
Regards,
Dinesh

On Thu, Jun 10, 2010 at 10:47 AM, athi <[email protected]> wrote:

> hi
>
> i am using flex 4
>
> i don't know how to set the background image in a button Control
>
> i think it is possible to use skinning.
>
>
> anybody give ideas or sample code
>
> regards
>
> athi
>
> --
> 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]<flex_india%[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.

Reply via email to