(swf file format spec v10)swf文件格式中英文说明书v10,各种标签部分,笔记9

Definition and control tags
The two categories of tags in a SWF file are as follows:
Definition tags define the content of the SWF file—the shapes, text, bitmaps, sounds, and so
on. Each definition tag assigns a unique ID called a character ID to the content it defines.
Flash Player then stores the character in a repository called the dictionary. Definition tags, by
themselves, do not cause anything to be rendered.
Control tags create and manipulate rendered instances of characters in the dictionary, and
control the flow of the file.
定义型和控制型标签
在SWF文件中,有两种类型的标签如下:
定义型标签定义SWF文件的内容,形状,文本,位图,声音等等。每个定义型的标签在内容被定义时分配一个唯一的ID叫做角色标识。
Flash播放器则把角色储存在一个仓库,叫它字典。定义型标签本身不产生任何渲染。
在字典中,控制标签创建和操纵角色实例渲染,并且控制文件流程。


Tag ordering in SWF files
Generally speaking, tags in a SWF can occur in any order. However, you must observe the
following rules:
SWF文件中的标签顺序
一般来说,SWF标签可以产生任何顺序,但是,你必须遵循以下原则:

■ The FileAttributes tag must be the first tag in the SWF file for SWF 8 and later.
■ A tag should only depend on tags that come before it. A tag should never depend on a tag
that comes later in the file.
■ A definition tag that defines a character must occur before any control tag that refers to
that character.
■ Streaming sound tags must be in order. Out-of-order streaming sound tags result in the
sound being played out of order.
■ The End tag is always the last tag in the SWF file.

■ 在SWF文件或更高版本中,文件属性标签必须排在第一个标签。
■ 一个标签仅能依靠它之前的标签。永远不能依靠后面的标签。
■ 一个定义型标签定义的角色必须在引用这个角色的控制型标签之前。
■ 声音流标签必须有顺序。无序声音流标签在声音播放的时候也是无序的
■ 结束标签永远在SWF文件的最后

你可能感兴趣的:(Flash)