首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

Flash8,actionscript2.0中文字体!

2012-02-22 
Flash8,actionscript2.0中文字体求助!急……flash8中用ActionScript2.0脚本动态生成动态文本框this.createTe

Flash8,actionscript2.0中文字体求助!急……
flash8中用ActionScript2.0脚本动态生成动态文本框

this.createTextField("lorem_txt", 20, 0, 20, Stage.width, 0);
lorem_txt.autoSize = "left";
lorem_txt.embedFonts = true;
lorem_txt.antiAliasType = "advanced";
lorem_txt.text = "测试中文";
lorem_txt.wordWrap = true;

var style_fmt:TextFormat = new TextFormat();
style_fmt.font = "黑体";
style_fmt.size = 30;
lorem_txt.setTextFormat(style_fmt);


导出以后没有任何的效果。
如果嵌入字体的话如何用脚本来进行控制?
还有没有别的解决办法?


[解决办法]

Java code
createEmptyMovieClip('m_temp',_root.getNextHighestDepth()) var loremtxt = m_temp.createTextField("lorem_txt", 20, 0, 20, Stage.width, 0); loremtxt.autoSize = "left"; //loremtxt.embedFonts = true; loremtxt.antiAliasType = "advanced"; loremtxt.text = "测试中文"; loremtxt.wordWrap = true; var style_fmt:TextFormat = new TextFormat(); style_fmt.font = "黑体"; style_fmt.size = 30; loremtxt.setNewTextFormat(style_fmt); 

热点排行