| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |
* The types used in this header are defined in the Basic Types section.
SWF File Header Field Type* Comment Signature UI8 Signature byte always F Signature UI8 Signature byte always W Signature UI8 Signature byte always S Version UI8 Single byte file version (e.g. 0x04F for SWF 4) FileLength UI32 Length of entire file in bytes FrameSize RECT Frame size in twips FrameRate UI16 Frame delay in 8.8 fixed number of frames per second FrameCount UI16 Total number of frames in movie
|
|
|
The high order 10 bits of the Code field is the tag ID. The low order 6 bits of the Code field is the length of the tag in bytes. The tag ID and length can be extracted from the Code field like this:
RECORDHEADER (short) Field Type Comment Code UI16 Tag ID and Length
TagID = Code >> 6;If the block is 63 bytes or longer, it is stored in a long tag. The long tag consists of a short tag with a length of 0x3f, followed by a 32-bit length.
Length = Code & 0x3f;
Note: The low order 6 bits of the Code value in a long tag are all set to 1.
RECORDHEADER (long) Field Type Comment Code UI16 Tag ID and Length of 0x3f Length UI32 Length of tag
<company name>/<extension set>For the entire file, these tag types will be interpreted in the context of the named extension. Applications should be able to remap the tag range for a particular file to avoid conflicts between two extension sets.
| Display List tags
PlaceObject PlaceObject2 RemoveObject RemoveObject2 ShowFrame |
Control tags
End Protect FrameLabel SetBackgroundColor StartSound |
Action tags
DoAction |
| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |