Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cacheAsBitmap on nested movieclips/sprites?

Participant ,
Jan 08, 2014 Jan 08, 2014

Hi. Regarding cacheAsBitmap, I was wondering whether to appy 'cacheAsBitmap' property on every nested sprites/movieclips or only on the main sprite/movieclip? In my case, I've one main container sprite, which has 3-4 sprites. These 3-4 sprites may also have children (shape/sprites). Now, I'm using scrollRect property of main container to scroll. I've set 'cacheAsBitmap' property to true for every single child/sub-child of the main container and of course to the main container as well. So, my question is, do I need to set for main container only or for every single child -it may have?

TOPICS
ActionScript
615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Jan 08, 2014 Jan 08, 2014

for main container only

if the nested sprites have animations themselves, then cacheAsBitmap is not a good choice:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e35.html

Translate
Guru ,
Jan 08, 2014 Jan 08, 2014

for main container only

if the nested sprites have animations themselves, then cacheAsBitmap is not a good choice:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e35.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 08, 2014 Jan 08, 2014
LATEST

Thanks for the correct reply and the link. This helped me a lot in understanding cacheAsBitmap property.

Edit:

After reading that post (link above), I think I'm doing wrong by setting cacheAsBitmap property to true for all nested children. It only consumes more memory! (Correct me if I'm wrong)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines