The dictionary
The dictionary is a repository of characters that are defined, and are available for control tags
to use. The process of building and using the dictionary is as follows:
1. The definition tag defines some content, such as a shape, font, bitmap, or sound.
2. The definition tag assigns a unique CharacterId to the content.
3. The content is saved in the dictionary under the CharacterId.
4. A control tag uses the CharacterId to retrieve the content from the dictionary, and performs
some action on the content, such as displaying a shape, or playing a sound.
字典
字典是一个被定义的角色库,并为控制型标签所用。建立和使用字典的过程如下:
1. 定义型标签定义了一些内容,如形状,字体,位图,或声音。
2. 定义型标签分配了一个唯一角色ID给内容。
3. 内容被保存在字典里的角色ID下。
4. 控制型标签使用角色ID从字典里检索内容,并在内容上执行一些动作,如显示形状,或者播放声音。
Every definition tag must specify a unique ID. Duplicate IDs are not allowed. Typically, the
first CharacterId is 1, the second CharacterId is 2, and so on. The number zero (0) is special
and is considered a null character.
每一个定义型标签必须指定一个唯一ID。重复的ID是不允许的。通常情况下,第一个角色ID是1,第二个角色ID是2,依此类推。数字0是特殊的并且被认为是空字符。
Control tags are not the only tags that reference the dictionary. Definition tags can use characters from the dictionary to define more complex characters. For example, the DefineButton and DefineSprite tags refer to other characters to define their contents. The DefineText tag can refer to font characters to select different fonts for the text.
不仅控制型标签可引用字典。定义型标签能从字典里使用角色去定义更复杂的角色。例如,DefineButton 和 DefineSprite标签引用其它角色去定义其内容。DefineText标签可通过字体角色为其文本选择不同的字体。
The following diagram illustrates a typical interaction between definition tags, control tags,and the dictionary:
下图说明了在定义型标签,控制型标签和字典之间一种交互控制。
Processing a SWF file
Flash Player processes all of the tags in a SWF file until a ShowFrame tag is encountered. At this point, the display list is copied to the screen and Flash Player is idle until it is time to
process the next frame. The contents of the first frame are the cumulative effect of performing all of the control tag operations before the first ShowFrame tag. The contents of the second frame are the cumulative effect of performing all of the control tag operations from the beginning of the file to the second ShowFrame tag, and so on.
处理SWF文件
Flash Player在SWF文件中处理所有的标签,直到遇到一个ShowFrame标签。在这一点上,显示列表被显示在屏幕并且Flash Player处于空闲状态,直到此时处理下一帧。第一帧的内容累积了第一个ShowFrame标签之前,所有控制型标签操作执行结果。第二帧内容是累积从文件开始到第二个ShowFrame标签的所有控制型标签的执行结果,等等。
- 大小: 20 KB
分享到:
相关推荐
swf文件格式说明
swf文件格式说明文档,用于反编译swf文件
swf_file_format_spec_v9.pdf swf_file_format_spec_v9.pdf swf_file_format_spec_v9.pdf swf_file_format_spec_v9.pdf
swf_file_format_spec_v9.pdf
The SWF [pronounced 鈥渟wiff 鈥? file format delivers vector graphics... The SWF file format is designed to be an efficient delivery format, not a format for exchanging graphics between graphics editors.
swf文件格式的说明,要对*.swf文件进行了解就必须要有swf文件格式的说明
swf文件最新v10版本文件格式介绍. Flash Player 10 introduces the following features and capabilities: Expands the SWF format’s text capability with the capability to render bidirectional text (right-to...
adobe swf-file-format-spec
swf file specification
swf 格式 说明书 swf file format spec_v10 Flash Player 10.1 (New API's),是生成swf不可缺少的手册
SWF FILE FORMAT SPECIFICATIONversion 19
swf文件格式说明书(中文+英文)
swf文件格式的说明,要对*.swf文件进行了解就必须要有swf文件格式的说明
swf/flv文件的格式说明书,研究好了可以自己生成swf/flv文件了
swf文件格式。研究Flash文档的数据结构的必备详细。Copyright © 2006-2012 Adobe Systems Incorporated. All rights reserved.
有效的去除flash swf文件加密,使flash文件中的各种资源 可以提取编辑 有效的去除flash swf文件加密,使flash文件中的各种资源 可以提取编辑
swf 文件格式 说明 版本 19 共248页 ,该文档描述swf文件的二进制数据构成.
Imperator FLA是一套可以从 SWF 文件格式转成 FLA 文件格式的软件,如此你可以由 Flash MX 软件中加以修改原来的 SWF 文件的内容。你只要作选择所要开启的 SWF 文件,再另存成 FLA 文件即可,再使用Flash MX 软件...