Embedding resources in style sheets
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Style> .style1 { backgroundImage: Embed("logo.jpg"); } </mx:Style> <mx:HBox> <mx:TextArea width="200" height="200" styleName="style1"/> </mx:HBox> </mx:Application>