Hi,
I hope I am not completely off the track by posting this question here. I am
doing it because I assume that my problems are related to a mis-configured
build.
I am currently puzzled about how I can get my style-definition to work. I am
using Flex 4 (4.0.0.14159) in a Maven build with FlexMojos (3.6.1).
In my application I load several modules using the ModuleManager (Not
ModuleLoader). I wanted to take controll over the styling of all the
Spark-Panels in my Application and all Modules and change the default
skinClass with a custom one. Unfortunately this didn't seem to work, so I
started with setting the background-color of the panel. At the moment I have
3 Classes in my main application Main.mxml, MainSkin.mxml and
DebugMain.mxml. DebugMain simply extends Main and redefines some paths so I
am able to debug the application.
If I place this in Main.mxml:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
s|Panel {
contentBackgroundColor: #DD9922;
backgroundColor: purple;
}
</fx:Style>
The color is only set if I complile the Main.mxml als main class. I would
have expected it to also be defined when using DebugMain.mxml ... Even if
backgroundColor is definied as non inheriting style, contentBackgroundColor
is inheriting, so at least I would have expected some ugly orange
input-fields, but this was not the case.
So I put the above Style defintiion into my DebugMain.mxml and was assuming
that the Style settings should take effect in my Modules ... but this was
not the case. I have to add the fx:Style block on every Module I use. This
is not what I desire and this is not the way the documentation tells me how
the Style inheritance should work (
http://opensource.adobe.com/wiki/display/flexsdk/Per-Module+Style+Management,
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html
).
I would greatly appreciate some hints to where my problems are comming
from.Or some newsgroup, mailinglist etc. where someone might be able
to help me.
Chris
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/