加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flash显示html内容

发布时间:2020-12-15 07:16:08 所属栏目:百科 来源:网络整理
导读:适用as2.0 1、先建动态文本,并命名myText 2、在帧上加上代码, myText .html = true;? myText. multiline = true; var myString = 'pbThis is a bold text/b/ppiAnd this text is in Italic/i/pThis is a a href="http://desigm.yesky.com"ulink/u/a to the

适用as2.0

1、先建动态文本,并命名myText

2、在帧上加上代码,

myText.html = true;?

myText.multiline = true;

var myString = '<p><b>This is a bold text</b></p><p><i>And this text is in Italic</i></p>This is a <a href="http://desigm.yesky.com"><u>link</u></a> to the bbc website.<br>Here is a little list of colors :<br><li><font color="#FF0000">Red</font></li><li><font color="#009900">Green</font></li><li><font color="#0000FF">Blue</font></li>Here is a little image that links to the bbc site<a href="http://desigm.yesky.com"><img src="bird.jpg"></a>';

myText.htmlText =?myString;

3、也可以读取外部文件作为html内容:参考http://www.wangchao.net.cn/bbsdetail_1736674.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读