SWF file format manual - Dictionary

xiaoxiao2021-03-06  91

Dictionary

dictionary

The Dictionary Is A Repository of Characters That Have Been Defined, And Are Available for Use by Control Tags. The process of building and using the dictionary is as follows:

1

A

Definition Tag Defines Some Content, Such As a Shape, Font, Bitmap, or Sound.

2

A

. 3 The Content by the definition tag.

4

A

control tag retrieves the content from the dictionary using the CharacterId, and performs some action on the content, such as displaying a shape, or playing a sound. 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. Character zero is special and considered a null character. 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 The Defer To Font Characters to Select Different Fonts for The Text.

The dictionary is a repository that has already defined all roles and can be used by controllable tags. The process of establishing and using a dictionary is the following: 1. A defined tag define some content, such as the shape, font, bitmap, or sound. 2. Define the type of tag to assign the content to the last one of the characterids. 3. Save the content to the dictionary based on the role identification. 4. A control tag finds the corresponding content from the dictionary according to the character identifier, and then performs some actions to this content, such as displaying a form, or playing a sound. Each control tag only specifies a unique identifier. The same identity is not allowed. For example, the first role is identified is 1, the logo of the second role is 2, and it is pushed. The role logo is 0 is a special identifier, which is seen as an empty role. The control tag is not a unique tag that points to a dictionary. Definition tags can also point to multiple roles to define some more complex roles. For example, definition buttons and definesPrite tags define their contents according to other roles. DefineText tags can point to font roles to select different fonts for text.

Attachment: Sprite is generally translated into a elves, explains that you can check the relevant books, Flash, Director, etc. have this concept. The Following Diagram Illustrate A Typical Interaction Between Definition Tags, Control Tags and The Dictionary:

The following graph shows a symbolic interaction between definition tags, control tags, and dictionaries:

(This article is declined, welcome to correct the error, ^ _ ^)

转载请注明原文地址:https://www.9cbs.com/read-107016.html

New Post(0)