The 'upSkin' and 'overSkin' of a Button are styles. The 'source' of an
Image is a property, not a style, and properties cannot be specified in
CSS.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of guillaumeracine
Sent: Wednesday, August 13, 2008 11:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can I set the image source in CSS?

 

Sorry for my multiple reply...

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "guillaumeracine"
<[EMAIL PROTECTED]> wrote:
>
> Yes:
> 
> Button{
> corner-radius: 0;
> border-style: solid;
> border-color: #FFFFFF;
> border-thickness: 2;
> up-skin: Embed(source="assets/upSkin.jpg");
> over-skin: Embed(source="assets/downSkin.jpg");
> color: #FFFFFF;
> font-size: 10px;
> }
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "luvfotography" <ygroups@>
wrote:
> >
> > For an image, can I set the source in css?
> > ie.
> > <mx:Image id="myimage" source="@Embed(source='../mypic.png')" />
> >
> > can I move the source to the css?
> >
> > or is there another way to do this?
> >
>

 

Reply via email to