Posted By

visualadvance on 05/15/11



Versions (?)

AS3: scrollRect

 / Published in: ActionScript 3

Using this can drastically increase performance. It is essentially like a mask. Anythingout outside the scrollRectangle is not rendered by Flash.

  1. // x, y, width, height
  2. yourClip.scrollRect = new Rectangle (0, 0, 1536, 2720);

Report this snippet  


RSS Icon Subscribe to comments
Posted By: th3d0g on May 16, 2011

BTW, for this to increase performance you need to ensure that the MovieClip is cached as a bitmap. E.g. - 'yourClip.cacheAsBitmap = true;'

You need to login to post a comment.