1. Minimize the number of path nodes in a vector image: The vector graphic display is obtained by the computer through real-time computing of the CPU. The vector graphics are obtained by defining the node location, line curvature, and surface fill color attributes, the number of basic element points directly affects the number of lines and planes, which also affects the CPU usage. 2. Use bitmap as much as possible when repeatedly using small text and logo as complicated as decoration: This is a balance between the number of bytes downloaded and the CPU usage, because the text itself is a complicated vector image. However, in many cases, the vector clarity is not required for background and decoration, in this case, bitmap greatly reduces CPU consumption and transfers some of the consumption to the CPU and memory of the video card. As long as the absolute area of the bitmap is not large, the byte volume of the bitmap and the vector is not much different. 3. A small bitmap can be used as a pigment to fill out repeated graphics and texture backgrounds: You can import a small basemap that can be used as a continuous basemap for some special effects. 4. Minimize the multi-layer embedding of dynamic MC: Multi-layer nesting will cause the CPU to repeatedly calculate graphics, locations, sizes, and other data, increasing the CPU load. 5. Minimize the simultaneous motion of multiple MC within the same frame: When multiple Mc servers run at the same time, the CPU peak is high, and the playback speed is slowed down. This can be avoided when designing the idea. The average motion of MC servers is placed in different frames to avoid concentration. 6. Avoid the movement and deformation of Large-area bitmap. If the bitmap can be deformed in external software, do not place it in flash. Import the bitmap after resizing. 7. Minimize the sharp changes in Mc size and rotation: If a complex image, bitmap, or dynamic Mc multi-layer embedding is added, the peak CPU usage will increase sharply, and the image will suddenly become very slow. 8. Minimize the proportion of the Flash animation on the screen when possible: It can also be understood as a smaller area or a smaller area that contains motion. For example, to reduce the animation area, make some creative animation on the large basemap. Only use flash for key transparent animation, so that it floats on the basemap, that is, the combination of the basemap reduces CPU usage, and can be divided into flash and image download threads, speeding up the download speed. 9. Reduce the number of frames per second: Minimize the number of frames per second if the effect is low. 10. Generate a file in Flash 5 format: Currently, few users have flash 6 Player Plug-ins. Using Flash 6 To Play files requires a long time to download the plug-in, which will affect the speed. Blue and domestic flashcoder Group supplement: In flash programs, we should minimize the use of cyclic replication MC, promptly Delete useless MC and variables, and release the memory to reduce client consumption. Avoid complex as operations. Avoid loading a large number of elements at the first frame, because during the download process, your banner is blank. Make sure to set the background color, because the website will not change the HTML background color code every time. Use HTML to zoom in and out the flash for different banner sizes. Prepare an animated GIF version. The Hong Kong website usually needs to add a clicktag parameter for join (clicktag is variable, truly linked through flashhtml, SwF? Clicktag = http .. input ). Yahoo requires only flash5 (pay attention to as compatibility during production) Static text is scattered before being exported, which can reduce the file size. If it is difficult to modify it later, you can copy the original text at the boot layer. All images are compressed externally using image compression tools, such as PS, preferably fireworks. Do not compress them in flash. Can use solid color, try to use solid color, if not, also try to use opaque transition, try to use less transparent transition color, less transparent gradient. In particular, do not add sound to the Flash banner. |