简体   繁体   English

将StyleSheet对象保存到Flex3中的CSS文件中

[英]save StyleSheet object to css file in Flex3

i can able to create StyleSheet object , i need to save that StyleSheet object to css file(in the css format). 我能够创建StyleSheet对象,我需要将该StyleSheet对象保存到css文件(以css格式)。

how can i do in flex3 Air application , is there any build in library ? 我该如何在flex3 Air应用程序中进行操作,库中是否有任何构建? Or links available to save as *.css file 或链接可另存为* .css文件

Thanks in advance 提前致谢

styleNames array of the StyleSheet class contains the names of all the styles in that object. StyleSheet类的styleNames数组包含该对象中所有样式的名称。 The StyleSheet class also contains a getStyle method that returns a style object associated with a given style name. StyleSheet类还包含一个getStyle方法,该方法返回与给定样式名称关联的样式对象。 I guess you can make a CSS string using these two. 我想您可以使用这两个来创建CSS字符串。 As for saving it as css file, you can do it with the FileStream class. 至于将其另存为css文件,则可以使用FileStream类来实现。 Use the writeUTFBytes method. 使用writeUTFBytes方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM