[flexcoders] Re: Can I set the image source in CSS?
--- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] 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? Don't think you can because source is a property not a style. Only styles can be set in the css. Do you have multiple images that have the same image source? I think flex should only embed the image once and then reuse the image data for the other embedded images.
[flexcoders] Re: Can I set the image source in CSS?
Yes : Button{ corner-radius: 0; border-style: solid; border-color: #FF; border-thickness: 2; up-skin: Embed(source=assets/slideshow/btnBleu.jpg); over-skin: Embed(source=assets/slideshow/btnOver.jpg); color: #FF; font-size: 10px; } --- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] 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?
[flexcoders] Re: Can I set the image source in CSS?
Yes: Button{ corner-radius: 0; border-style: solid; border-color: #FF; border-thickness: 2; up-skin: Embed(source=assets/upSkin.jpg); over-skin: Embed(source=assets/downSkin.jpg); color: #FF; font-size: 10px; } --- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] 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?
[flexcoders] Re: Can I set the image source in CSS?
Yes: Button{ corner-radius: 0; border-style: solid; border-color: #FF; border-thickness: 2; up-skin: Embed(source=assets/upSkin.jpg); over-skin: Embed(source=assets/downSkin.jpg); color: #FF; font-size: 10px; } --- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] 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?
[flexcoders] Re: Can I set the image source in CSS?
Sorry for my multiple reply... --- In flexcoders@yahoogroups.com, guillaumeracine [EMAIL PROTECTED] wrote: Yes: Button{ corner-radius: 0; border-style: solid; border-color: #FF; border-thickness: 2; up-skin: Embed(source=assets/upSkin.jpg); over-skin: Embed(source=assets/downSkin.jpg); color: #FF; font-size: 10px; } --- In flexcoders@yahoogroups.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?
RE: [flexcoders] Re: Can I set the image source in CSS?
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: #FF; border-thickness: 2; up-skin: Embed(source=assets/upSkin.jpg); over-skin: Embed(source=assets/downSkin.jpg); color: #FF; 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?
[flexcoders] Re: Can I set the image source in CSS?
Yes right... My bad --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: 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 guillaume.racine@ wrote: Yes: Button{ corner-radius: 0; border-style: solid; border-color: #FF; border-thickness: 2; up-skin: Embed(source=assets/upSkin.jpg); over-skin: Embed(source=assets/downSkin.jpg); color: #FF; 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?