影片剪辑加载内嵌的文本字段 [英] Load MovieClip inline in TextField
问题描述
我要加载影片剪辑一个文本字段内嵌入的文字。
I want to load a MovieClip inside a TextField inline with the text.
TextField的文件说:你分配给文本字段,可以包含嵌入的媒体(短片,SWF文件,GIF文件,PNG文件和JPEG文件)的HTML文本。
The TextField documentation says "HTML text that you assign to a text field can contain embedded media (movie clips, SWF files, GIF files, PNG files, and JPEG files)."
如何与影片剪辑这样做吗?必须有一个监听器就可以忽略。
How can this be done with MovieClips? There must be a listener we can override.
来源:的http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html
推荐答案
从文档:
src:指定的URL的图像或 SWF文件或链接标识符 在影片剪辑元件 图书馆。此属性是必需的; 所有其他属性都是可选的。 外部文件(JPEG,GIF,PNG,和 SWF文件)不显示直到它们 下载完毕。
src: Specifies the URL to an image or SWF file, or the linkage identifier for a movie clip symbol in the library. This attribute is required; all other attributes are optional. External files (JPEG, GIF, PNG, and SWF files) do not show until they are downloaded completely.
您可以通过设置自己的链接标识符中的&LT的
节点。 的src
属性添加影片剪辑; IMG>
You can add MovieClip by setting his linkage identifier in the src
attribute of the <img>
node.
这篇关于影片剪辑加载内嵌的文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!