闪存 CS 4 / AS 2 +动态文本 + Html +嵌入字体

发布于 2024-08-03 07:48:23 字数 531 浏览 3 评论 0原文

我有这样的场景:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

金橙橙 2024-08-10 07:48:23

我会只嵌入您需要的字符。

1 - 单击动态文本字段
舞台,

2 - 选择“抗锯齿”
属性中的可读性
检查员。

3 - 单击属性中的“嵌入”
检查员。

4 - 在嵌入弹出窗口中,选择“基本”
拉丁语”、“拉丁语扩展”或任何
您需要的字符集,或粘贴
框中的字符是您需要的
弹出窗口的底部。

应该是这样!你的 CSS 样式应该仍然可以正常工作。

I would embed the characters just the characters you need.

1 - Click on your dynamic textField on
the stage,

2 - Select 'Antialias for
readablility' in the property
inspector.

3 - Click EMBED in the property
inspector.

4 - In the EMBED popup, choose 'basic
Latin', 'Latin extended', or any
charsets that you need, or paste in
the characters you need in the box on
the bottom of the popup.

That should be it! You CSS styles should still work fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文