Yeah, there should be per-module styles in all Apache Flex versions.

BTW, you’ll get more timely assistance by asking on the [email protected] 
mailing list.

-Alex

From: <[email protected]<mailto:[email protected]>> on behalf 
of "Dave Glasser [email protected]<mailto:[email protected]> [flexcoders]" 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, July 29, 2015 at 7:25 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows



Interesting idea, I'll look into it. I'm using Flex 4.13 currently.





________________________________
From: "Alex Harui [email protected]<mailto:[email protected]> [flexcoders]" 
<[email protected]<mailto:[email protected]>>
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Sent: Wednesday, July 29, 2015 9:40 AM
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows



I think if each window loads a module, that module gets its own styles.  You 
might need Flex 4.6 or later for that to work.

-Alex



From: <[email protected]<mailto:[email protected]>> on behalf 
of "Dave Glasser [email protected]<mailto:[email protected]> [flexcoders]" 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Friday, July 24, 2015 at 6:20 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [flexcoders] CSSStyleDeclaration in AIR app Windows


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.






Reply via email to