| | h2. Animations |
| | {info:title=Add your own tips} |
| | Sign into this wiki (or register) then use Edit to insert your tip or click Add Comment at the bottom of the page. {info} |
| | (/) *Set focal point for animations* |
| | * To improve performance, place detailed animation at the focal point of the screen, and minimize animation and effects in other areas of the screen. |
| | |
| | *Author:* Ian Carter |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=focal\|display=default} |
| | \\ |
| | |
| | |
| | (/) *Make sure new documents have correct stage size and resolution* |
| | * Try to set the document Stage size to match the resolution of the target device. Also set the Flash Player to the correct version of Flash Lite and select an appropriate device profile in Device Central. Although Flash files scale smoothly, performance can suffer if the file is not running at its native Stage size and has to scale in the player. |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationSize\|display=default} |
| | (/) *Experiment with different render quality settings* |
| | * Flash Lite can render vector graphics at low, medium, and high quality. The higher the rendering quality, the more smoothly and accurately Flash Lite renders vector graphics and the greater the demand on the device's CPU. To provide complex animation, experiment with changing the player's quality setting and then thoroughly test the SWF file. To control the rendering quality of a SWF file, use the_quality property or the [SetQuality] command. Valid values for the \_quality property are LOW, MEDIUM, and HIGH. |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationRender\|display=default} |
| | (/) *Things to consider when using tweens* |
| | * Limit the number of simultaneous tweens. Reduce the number of tweens, or sequence the animation so that one begins when another ends. |
| | * Experiment with combinations of tweens, keyframe animations, and [ActionScript]\-driven movement to produce the most efficient results. |
| | * Avoid overlapping tweens, because Flash interprets the merged area as a single rectangle, resulting in a larger total region. Use Flash's Show Redraw Region feature to optimize the animation. |
| | |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationTween\|display=default} |
| | \\ |
| | |
| | (/) *Use transparency (alpha) effects on symbols sparingly* |
| | * They are CPU intensive. In particular, avoid tweening symbols with alpha levels that are not fully opaque (less than 100%). |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationTrans\|display=default} |
| | (/) *Avoid CPU-intensive visual effects* |
| | \\ |
| | * Avoid using large masks, extensive motion, alpha blending, extensive gradients, and complex vectors. |
| | |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationEffects\|display=default} |
| | \\ |
| | |
| | (/) *Aviod using vector ovals/circles* |
| | * Rendering vector ovals and circles is much more memory intensive than rendering quadrangles. Using round and oval strokes also greatly increases CPU use. |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationOval\|display=default} |
| | \\ |
| | |
| | (/) *Make bounding boxes as small as possible* |
| | * When Flash draws an animated region, it defines a rectangular bounding box around the area. Optimize the drawing by making that rectangle as small as possible. |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationBound\|display=default} |
| | \\ |
| | |
| | (/) *Watch how you hide movie clips* |
| | * Avoid using \_alpha = 0 and \_visible = false to hide on-screen movie clips. If you simply turn a movie clip's visibility off or change its alpha to zero, it is still included in line-rendering calculations, which can affect performance. Similarly, do not try to hide a movie clip by obscuring it behind another piece of artwork. It will still be included in the player's calculations. Instead, move movie clips completely off the Stage or remove them by calling removeMovieClip. |
| | |
| | *Author:* Adobe |
| | |
| | {rate:title=Rate this tip\|theme=dynamic\|key=AdobeFlashAnimationMovieC\|display=default} |
| | |
| | |
| | \\ |
| | \\ |
| | \\ |
| | \\ |
| | \\ |