Jump to content
Search Community

BlitMask causing flash cs5 to crash?

Chrysto test
Moderator Tag

Recommended Posts

Hi;

 

I am using Mac OSX 10.5 and Adobe Flash CS5

 

I have to build a resizable horizontal slider with a lot of images. The idea is to have a slider that makes all images proportionaly resized and the height is stage.stageHeight-200, so every time the stage is resized, the slider resizes. I done it with normal mask and it occupied a lot of memory and CPU, so I decied to speed the things a little with BlitMask. The problem is, every time I try to use it instead of regular mask my Flash crashes. Any ideas?

Link to comment
Share on other sites

It's very difficult to troubleshoot blind like this, but I wonder if you're just using waaaay too much memory. Remember, BlitMask must take a bitmap capture of the target which requires memory. How big is your target? And if you're triggering an update many times while the screen is being resized, I can see why it would really stress Flash out to constantly keep re-capturing the bitmap. I'd switch bitmapMode off until you're done with the resizing or until you actually need to scroll the content.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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