Jump to content

cacheAsBitmap removes group properties inheritance?


Recommended Posts

I have a big group that I want to cache as bitmap some times to improve performance. I have noticed that when cacheAsBitmap is set to true, the objects position is no longer relative to its parent.


Say I have this:



- General group

   - Group1

      - Object1

      - Object2

   - Group2

      - Object3

      - Object4



If General Group had x= 100, y=100 values, whenever I set cacheAsBitmap to true, every Object would move 100 px to the left and 100 px to top. Adding 100px to Group1 or 2 does not make any difference so I guess once they are inside a cached group, they do no inherit anything.

Is there any way I can fix this? I need t keep track of the input on these elements, and if they are drawn on a different posistion than the input is expected, it is impossible to handle.

Thanks in advance for your help :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...