闪存 CS 4 / AS 2 +动态文本 + Html +嵌入字体
我有这样的场景:
1) 我有一个动态文本,它从 XML 接收数据。
2)显示的文本从 CSS 文件中获取其样式。
3) 我的动态文本有一个 html“span”标签,并且根据通过 XML 文件传递的 CSS 类进行格式化。
好的...到目前为止一切顺利。类似于:
_root.txt.txtDica = "<span class='"+ node.childNodes[_global.auxCont].attributes.myStyle +"'>" + node.childNodes[_global.auxCont].attributes.myText+ "</span>";
问题是 swf 的文本质量很差。所以,我一直在四处寻找,发现了一些关于嵌入字体、Flash TextField() 等的东西。但是,似乎没有任何效果。
有谁知道如何在动态文本中生成高质量的 html 标签?值得一提的是,我使用的是常规字体,例如 Verdana 和 Arial。
多谢!
I have this scenario:
1) I have a dynamic text that receives its data from a XML.
2) The texts showed get theirs style from a CSS file.
3) My dynamic text has a html 'span' tag and it's formatted according to the CSS class that it's passed via the XML file.
Ok... so far so good. It's something like:
_root.txt.txtDica = "<span class='"+ node.childNodes[_global.auxCont].attributes.myStyle +"'>" + node.childNodes[_global.auxCont].attributes.myText+ "</span>";
The problem is that the swf has a poor quality text. So, I've been looking around, found some things about embedded fonts, Flash TextField() and etc. But, nothing seems to work.
Does anyone know how can I generate this html tag in a dynamic text with a good quality? It's worth to say that I'm using regular fonts, such as Verdana and Arial.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会只嵌入您需要的字符。
应该是这样!你的 CSS 样式应该仍然可以正常工作。
I would embed the characters just the characters you need.
That should be it! You CSS styles should still work fine.