Avatars are often used in websites, and many websites use Flash to generate them. Today I happened to see a Flash that was pretty good, so I started to study its implementation principle. The following is the analysis process. If you are not interested, please skip it. At the end, download the source code package (passed the test on Shaka's Shenzhou notebook). When testing, please upload avatar_test to the root directory of the website. If it does not work properly, it is probably because the directory does not have write permissions. Please enable the three subdirectories starting with avatar for writing. Permissions. Special statement, AvatarEditor.swf is developed by bai.sohu.com and the copyright belongs to Sohu.