Avg. Rating 2.3

Problem

Using Tween class in your Flash Lite project but you find performance issue to animate clips on the stage

Solution

A developer must follow few simple rules to create good tween in a Flash Lite project

Detailed explanation

 When you work with Flash Lite, you can use Tween class to animate user interface.

If you follow few rules you can create great experience for your users:

1. animate 1 movieclip per time becuase you must remember that you are working on mobile devices not a PC!

2. TweenLite is a good library to use for mobile animations

3. When you move a movieclip that contains lots of textfields or clips, switch movie quality to low (fscommand2("SetQuality", "low")) and, when animation is finish turn quality to high (fscommand2("SetQuality", "high")).
With this trick you can have great performance for your animations

4. avoid to animate alpha movieclip property because it's CPU intensive

5. avoid to animate complex graphics movieclip, maybe it will be better use a bitmap file instead of a vector symbol.

6. test application on devices not only on Device Central


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes