I'm developing a multi-window Flex/AIR desktop app.
I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:
var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");
decl.setStyle("widgetColor", 0xFF0000);
The style change affects all WidgetClassName instances across all windows.
Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.