I have this xml for example: <item icon="myIcon.gif"/> for every <item> I will add a TitleWindow to the Application, and I need to set the titleIcon property. I tried it this way:
var iconSource:String = 'url("' + [EMAIL PROTECTED] + '")'; myTitleWindow.setStyle("titleIcon", iconSource); even if I try to set it manually : myTitleWindow.setStyle("titleIcon", 'url("myIcon.gif")' ); it doesn't work.. (I know it's not the path.. the path to the image is good, the method is wrong) What's the problem? and more important how can I solve it? (is it because myIcon.gif is not loaded when I set the style? thank you