开发者

Flex application font style is different between Flash Builder and MXMLC

When I 开发者_如何学运维compile my project with MXMLC I get a light grey font; if I specify a CSS style Application { color: black;} it fixes some of the colors but not most of them. When I compile with Flash Builder it's a nice solid black. I'm using Halo.swc and not any Spark stuff, I have the same fonts installed on the MXMLC compiling computer, same SDK, so is Flash Builder using a stylesheet somewhere or something I'm not aware of?


You should put your global styles into a global selector at the top of your stylesheet, like so:

global {
  /* styles */
}


I should have mentioned I'm using Flash Builder's 3.5 compiler instead of 4.0 since the project is old, and my command line SDK is 4.0 only with a compatibility version = 3.5 flag passed in. Anyway, the command line version is nevertheless using the modern 4.0 Halo theme while Flash Builder is using the classic Halo theme for 3.5, which is where the difference is. (Changing the project to 4.0 in flash builder results in the same look as the command line.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜