How to set an image's source in a Flex stylesheet (not Embed)
问题 This works: <mx:Image styleName="image" source="done.png"> </mx:Image> This doesn't: <fx:Style> @namespace mx "library://ns.adobe.com/flex/mx"; @namespace s "library://ns.adobe.com/flex/spark"; .image { source : url("done.png") } </fx:Style> <mx:Image styleName="image" > </mx:Image> Driving me crazy. How it this supposed to be done? Same results if I do: .image { source : "done.png" } Complete source code is: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com