资源预览内容
第1页 / 共17页
第2页 / 共17页
第3页 / 共17页
第4页 / 共17页
第5页 / 共17页
第6页 / 共17页
第7页 / 共17页
第8页 / 共17页
第9页 / 共17页
第10页 / 共17页
亲,该文档总共17页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
flash 适用的html标签 我的空间 主页|空间装扮博客|写新文章相册|上传照片好友|找新朋友档案|留言板我的应用 投票转帖更多应用 0 | 我的消息(0/3) | 我的空间 | 我的应用 | 百度空间 | 百度首页 | 退出 Flash知识大全*梦想起航,生命无限精彩* 主页博客相册|个人档案 |好友 查看文章 Flash支持的HTML标签有哪些2010-01-16 09:49一、Flash 8 支持的HTML标签和用法(1)Flash 8 支持的HTML标签1、<a> 超链接标签属性:href 链接地址target目标窗口,可取值为_blank,_parent,_self,_top例:my_txt.htmlText=”<a href=http:/hi.baidu.com/kmjy/creat/blog/ target=_blank>开明教育</a>”2、<b> 粗体标签|例:my_txt.htmlText=”<b>粗体</b>”3、<br> 换行标签例:my_txt.htmlText=”第一行<br>第二行" 4、<font> 字体标签属性:color字体颜色,格式#RRGGBBface字体,可以是单个字体或字体列表,字体名称size字体大小,单位像素,数字例:my_txt.htmlText=”<font color=#ff0000 face=Arial size=12>用HTML字体标签的效果</font>”5、<i> 斜体标签例:my_txt.htmlText=”<i>这里是斜体</i>” 6、<li> 列表项标签例:my_txt.htmlText=”Sports:<li>列表项一</li> <li>列表项二</li><li>列表项三</li>” 注意,文本属性要选中“多行”。不支持<ol> 和<ul>标签 7、<p> 段落标记属性:align对其方式,可取值left、right、centerclass应用一个css样式类例:my_txt.htmlText=”<p align=right title>右对齐</p><p align=left body>左对齐</p>” 注意,文本属性要选中“多行”。本例假设css类title和body已存在。8、<span> 标签说明:对位于该标签内所有文本应用css样式,只有在定义了css对象后有效。属性:class应用一个css样式类。例:my_txt.htmlText=”<span body>应用CSS样式类</span> 注意,本例假设css类body已存在。9、<u> 下划线标签例:my_txt.htmlText=”<u>添加下划线</u> 两个特殊的标签:10、<img> 图像标签说明:这个标签的功能不仅仅是在文本框中插入图片,还可以插入SWF和MovieClip。属性:src 要加载的JPG或SWF的URL,或是MC的链接ID,这个属性是必要的,其他属性则可选。注意:Flash不支持progressive格式的JPG。id指定嵌入了JPG,SWF或MovieClip的电影剪辑的名称。width图片/动画宽度。 height图片/动画高度。align对其方式,可取值:left,right,默认为left。hspace文本环绕图时水平方向上与图片的空隙。vspace文本环绕图时垂直方向上与图片的空隙。11、<textformat> 文本格式标签说明:这个标签可以让你直接应 用一些TextFormat对象的属性到文本中。属性:blcokIndent: 段落缩进大小,单位像素。indent: 段落首行缩进大小,单位像素。leading: 文本行间距,单位像素。leftmargin: 文本左边距,单位像素。rightmargin: 文本右边距,单位像素。tabstops: 表格划分,单位像素。注意:关于属性tabstops:它的值是一个数组,用来表示表格的列划分情况。在文本中用转义字符t将输出位置移动到下一个制表位。例:tabField=”<b>姓名t性别t年龄t</b><br>”;tabRecord1=”唐家齐t男t21t<br>”;tabRecord2=”张晓明t女t18t<br>”;txt=”<textformat tabstops=50,150,150>" + tabField + tabRecord1 + tabRecord2 + "</textformat>”;(2)在 Flash 8 如何使用HTML标签第一步:新建 Flash 文档,在舞台上创建一个动态文本框,设定实例名称为my_txt 。 第二步:在第一帧加入AS代码: my_txt.html = true; /指定该文本字段为HTML文本字段。 my_txt.htmlText= "<a href=http:/hi.baidu.com/kmjy/creat/blog/ target=_blank>开明教育</a>" /引用HTML的超链接标签。Flash CS3里可用的HTML标签和注意事项Adobe Flash播放器支持一组标准HTML标签, 例如<p>和<li>, 你可以把它们放在动态或输入框文本区内来格式化文字.Flash播放器版本7和后续版本也支持<img>标签. 你可以在文本区嵌入图片(JPEG,GIF,PNG)和SWF文件.Flash播放器自动把文字环绕在图片周围, 就像浏览器显示HTML页面时把文字环绕在图片周围那样.Adobe Flash Player supports a subset of standard HTML tags such as <p> and <li>, which you can use to style text in any dynamic or input text field. Text fields in Flash Player 7 and later also support the <img> tag, which lets you embed image files (JPEG, GIF, PNG), SWF files, and movie clips in a text field. Flash Player automatically wraps text around images embedded in text fields in much the same way that a web browser wraps text around embedded images in an HTML page.HTML tags supported by Adobe Flash CS3 ProfessionalThe following HTML tags are supported by Adobe Flash CS3 Professional. Optional tag attributes appear in brackets.引用内容Anchor: <a href="/support/flash/ts/documents/url">Bold: <b>Font: < font color="#xxxxxx" face="Type Face" size="Type Size">Italic: <I>Paragraph: <p align="left"|"right"|"center">Underline: <u>Break: <br>Image: <img src="/images/flash/dogs.jpg"/> The <img> tag lets you embed external image files (JPEG, GIF, PNG), SWF files, and movie clips inside text fields and TextArea component instances.List Item: <li>ordered and unordered lists (<ol> and <ul> tags) are not recognized by Flash Player, so they do not modify how your list is rendered. All list items use bullets.Span: The <span> tag is available only for use with CSS text styles.TextFormat: The <textform at> tag lets you use a subset of paragraph formatting properties of the TextFormat class within HTML text fields, including line leading, indentation, margins, and tab stops. You can combine <textformat> tags with the built-in HTML tags.引用内容Additionally, Flash Player supports HTML entities:< < (less than)> > (greater than)& & (ampersand)" " (double quotes)
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号