A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: cacheAsBitmap and Masks don't get along.

  1. #1
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79

    cacheAsBitmap and Masks don't get along.

    Hello,

    I posted a little while ago about having artifacts appear in my movieclip using cacheAsBitmap. I had time to explore this issue further and found the problem. Using cacheAsBitmap on a movieclip under a mask looks to be the issue. The quick answer is use scrollRect on your movieclip instead of a mask.

    Take a look at these examples. Mouse over the image thumbnails to get a tooltip (which will cause the problem).

    Uses mask but cacheAsBitmap is set to false - no problem here.

    Uses mask but cacheAsBitmap is set to true - Crazy redraw artifacts.

    Uses scrollRect instead of maks and cacheAsBitmap is set to true - No problem.

    I hadn't read anything on this issue so I hope this helps.

  2. #2
    Interesting, good find.

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Yep, looks like a bug. I'd send it to Macromedia with a link to the url.

  4. #4
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    But in the third example, the mouse-over-lable flickers
    (it gets unvisible twice a second - FF1.0.7,FP8.0.22).

  5. #5
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    But in the third example, the mouse-over-lable flickers
    Actually that is a bug with my tooltip class. Sorry about that I'm still trying to debug. It has to do with using setInterval to delay the appearance of it.

    I've changed the example so tooltips just appears on rollover, fixing that unrelated problem.
    Last edited by rhodesbe; 11-09-2005 at 10:22 AM. Reason: update

  6. #6
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    I had similar problems and was using alot of text in my movieclip so I NEEDED cacheasbitmap turned on the clip that was being masked for performance reasons. However, it would flicker at some spots. I managed to fix it by turning cacheasbitmap on for the MASK as well as the clip being masked. Although this worked I think these needs fixing as the mask is animated and it will use more processing the way I have to do it.
    ecards - My full flash site.

  7. #7
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    This problem seems to be fixed in the new 8.5/9 flash player.

  8. #8
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    Hmm, downloaded the update but still seems to have the problem in the test environment. The download said it would replace the both players for web and developement, but if I test from within flash 8 (ctrl-enter) it still has the problem, however if I double click the .swf file and run it outside of the developement area the problem seems to be fixed?
    ecards - My full flash site.

  9. #9
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    The 8.5 player download doesn't replace the player used when you test a movie from within flash. This has always been a seperate download in the past. I don't expect there will be a 8.5/9 version for Flash 8 Authoring. The Flash 9 Alpha is promised in the next month or so.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center