ActionScript 3.0 – Performance Tuning

Posted: May 31, 2012 in Adobe
Tags: , ,

Performance is a key ingredient to success of any application. This is a common factor for end-user to judge your application. Here I am listing some of the point that help us to improve the performance of ActionScript3 based application.

  • Always stay strongly typed
  • Avoid to using constants
  • For creating of instance of Array and Object instead of using constructor use [] and {}
  • _visible is better than _alpha
  • Must remove onEnterFrame and setInterval after use
  • Use int and bitwise operations
  • Carefully watch your Listeners
  • Avoid accessing variables of other classes directly
  • Use bitwise operator for multiplication and division
  • Keep in mind that division is slower than multiplication

 

Reference – http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_content.pdf

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s