开发者

flex 4 how do I change the flex theme dynamically at runtime, not at compile time?

flash builder 4 comes with 开发者_运维技巧a couple of cool spark themes, and there are tons of others out there on the web, I want to be able to change the theme at runtime, without recompiling.

Is this possible?

If it is, do you have any hint's on how this can be achieved.

Thanks in advance Gary


You can compile a css file into your swf and then load it at run time. Checkout IStyleManager.loadStyleDeclarations. On the other hand if you are referring to themes such as Halo and Spark, those cannot be swapped out at run time. So you are stuck with which ever one you compiled it with.

For further information take a look at this thread on the Adobe Forums.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜