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
|
RECT
|
|
|
Field
|
Type
|
Comment
|
Nbits
|
nBits = UB[5]
|
Bits in each rect value field
|
Xmin
|
SB[nBits]
|
X minimum position for rect
|
Xmax
|
SB[nBits]
|
X maximum position for rect
|
Ymin
|
SB[nBits]
|
Y minimum position for rect
|
Ymax
|
SB[nBits]
|
Y maximum position for rect
|
RECT
|
|
|
Field
|
Type
|
Comment
|
Nbits
|
UB[5] = 1011
|
Bits required (11)
|
Xmin
|
SB[11] = 00001111111
|
X minimum in twips (127)
|
Xmax
|
SB[11] = 00010000100
|
X maximum in twips (260)
|
Ymin
|
SB[11] = 00000001111
|
Y minimum in twips (15)
|
Ymax
|
SB[11] = 01000000010
|
Y maximum in twips (514)
|