Http://www.yesky.com/softchannel/72351185134157824/20020929/1633155.shtml
SWF file structure big anatomy
2002-09-29
■ Author: cattle Shengchao
■ Source: Tianji design online
Previous 1 2 3
Third, the mutual conversion between SWF and EXE files With flash comes with the player to convert a SWF file into an automatically played EXE file, this conversion process is just a player's code before and after the SWF file. And, when we know this conversion principle, we can implement it from EXE to SWF. After analyzing the EXE file converted by the SWF file, I found that the player comes with the flash is just the following steps to the SWF file: 1, add the exe file head before a SWF file, a total of 5BFFF bytes; 2, next is the complete SWF file content; 3, then the four bytes are the end flag of the EXE file; 4, the final is the four bytes of the SWF file size. Convert an exe file of a flash film into a SWF file, we only need to make the process of converting the exe file of the SWF file, it is possible to delete the above 1, 3, 4 steps. Yes. See the table below for details:
↓
Offset
Byte content
Note
04D 5A 90 ··· 00 00 00 00 00 00 00 00 00 00 文件 5C00046 (or 43) SWF file head 5C001575C002535C003 (55, 04, 03, 02, 01) SWF file version number 5C004 record SWF file size four bytes 5C0055C0065C007 ··· SWF file content 40SWF file end Sign 00 00 00 00 00 5 e File end Sign 34 12 FA Record SWF file size The four bytes of SWF file size are the same as the content of 5C004 ~ 5C007 here, the anatomical analysis of the SWF file is ended. You can make a flash player in combination with Flash controls, you will be great!
Previous 1 2 3