You could also reference an embedded graphic in some CSS selector and
then do something like
<mx:Image id="myimage"
initialize="myimage.source =
StyleManager.getStyleDeclaration('someSelector').getStyle('someStyle')"/
>
Gordon Smith
Adobe Flex SDK Team
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: Wednesday, August 13, 2008 2:09 PM
To: [email protected]
Subject: RE: [flexcoders] Can I set the image source in CSS?
I recall you can use resource files / ResourceManager to specify
embedded images, if that's the sort of thing that you want to do?
There's a relevant article on the adobe developer site somewhere as far
as I remember.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of luvfotography
Sent: 13 August 2008 19:17
To: [email protected]
Subject: [flexcoders] Can I set the image source in CSS?
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?
______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office:
4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
5PA, UK. VAT registration No. 648874577.
This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received it
in error, please contact the sender immediately by return e-mail or by
telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
______________________________________________________________________