SWF file structure big anatomy (1)

zhaozj2021-02-16  106

Http://www.yesky.com/softchannel/72351185134157824/20020929/1633155.shtml

SWF file structure big anatomy

2002-09-29

■ Author: cattle Shengchao

■ Source: Tianji design online

1 2 3 Next Page

Flash various instances have seen a lot, but have you ever thought about what is the structure inside the SWF file? Many flashmen want to make their own Flash player, in addition to the master of the control, more need to be a deep understanding of the SWF file structure. So I opened a SWF file with the EXE file generated by WinHex. After careful analysis of the comparison, I not only discovered the SWF file into the secrets of the EXE executable file, and the flash comes with the player and the control is not available. The mysteries of those implemented are also unsuccessful. Since we have to "anatomy" SWF files, we must have an "anatomy" tool. I use WinHex 9.2, you can also view other binary editors. I. SwF file structure and information left "offset" one represents one byte, the same or related function, is expressed in the same background color. The offset is represented by a decimal number, and the value of each byte is represented by a hexadecimal number.

Offset

meaning

0 is fixed to 46 57 53, that is, the letter 'F''W''s 'is also 43 57 53, that is, the letter' C'W ''s' 123 file version number is played before playing a SWF file. You can see if you need to update based on this value. (Flash MX generated SWF file version number 6) 4 File size The correct file size should be the sixteen-entered number of hexadecimal numbers in the order of 7, 6, 5, and 4, and the unit is byte. 5678 film wide high data control code (Detailed description) 9 ··· The width of the film and the number of items of the high data storage area are determined by the control code (after detailed explanation) N1 (unknown) N2 video screening speed design The speed specified, the unit is (frame / second). The number of frames of the total number of frames of the N3 film should be the number of hexadecimal numbers that are arranged in the order of N4 and N3. N4N5 (unknown) N6 (unknown) N7 background color N8 color N8 background color green value N9 background color in the blue value ··· The last four bytes of the film data area file is 40 00 00 00 Note: due to The number of bytes of the long and wide control code is uncertain, so the offset will not be represented by specific numbers, and N1, N2, N3 and other symbols are used. The structure shown in the above table is the structure of the SWF file. You can clearly understand which part is useful for your program. Which part can solve your problem, how? Is it started to steal? Don't worry, continue to watch more exciting still is behind!

1 2 3 Next Page

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

New Post(0)