I'm getting warnings in an mxml file for an application I'm building and I don't know why.
I would like the user to be able to change the background color of the application, so I moved the backgroundColor setting of the <s:Window/> and <s:WindowedApplication/> tags from within the tag themselves to the external stylesheet, like this:
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
So, when the user wants to change the background color, I just load up a new stylesheet containing the selected background color settings. This actually works when I test the app, but Flash Builder is also showing me the following warning: "CSS type selectors are not supported in components: 'spark.components.WindowedApplication'."
That warning doesn't make sense to me because, as far as I understand, you can set CSS styles for such things as the WindowedApplication and Window. The options (s|WindowedApplication and s|Window) are actually in the options for CSS styles.