Working on this prototype[mx]

im working on this prototype and i can’t seem to get it to work. It supposed to draw a mask for an mc and fade the mask so it fades the MC. The reason im doing this, is that i want to alpha fade some BIG bitmaps but it’s too laggy, so i figured this could be a good way to do it. it draws the mask just fine., but it won’t fade. can someone help?

You can’t fade a mask… well… you CAN, but it doesn’t show. Masks go by shape and shape only. Any other properties aren’t inherited by the mask, including the alpha value.

i guess that would be the problem. I tried it before and somehow it worked, but i guess that must have been a fluke or a mistake

Yeah, it shouldn’t have worked before… weird :q:

yup it sure was a fluke. dang…well maybe you can help me out here…im trying to fade BIG bitmaps, but it’s too laggy, are there any more effiecent ways to do this?

Well the only option you have to is fade the bitmap :-\ So lets see what we got here…

Alpha fades are bit on the processor intensive side to begin with (depending on what and how many you are fading)

Your bitmaps are big.

Alright, so we can’t optimize much with the alpha fade, but we might be able to optimize the bitmap.

Bitmaps images (assuming by bitmap you mean .bmp) are very ineffecient file types. Is there any way you convert them to an optimized and much more efficient .jpg format? This MAY make your file run smoother, but im not entirely sure. If this doesn’t work, I don’t really know what else you can do to optimize.

*Originally posted by lostinbeta *
**Well the only option you have to is fade the bitmap :-\ So lets see what we got here…

Alpha fades are bit on the processor intensive side to begin with (depending on what and how many you are fading)

Your bitmaps are big.

Alright, so we can’t optimize much with the alpha fade, but we might be able to optimize the bitmap.

Bitmaps images (assuming by bitmap you mean .bmp) are very ineffecient file types. Is there any way you convert them to an optimized and much more efficient .jpg format? This MAY make your file run smoother, but im not entirely sure. If this doesn’t work, I don’t really know what else you can do to optimize. **

actually they are PNG’s sorry. they images are 1024x768 and they are like ten of them…this is not gonna run off the web, it’s for a presintation.

Oh, .PNG images aren’t very efficient either, and they are actually quite processor intensive, especially if they contain partially transparent areas.

So even with .PNGs I would still recommend trying to stick with a .gif or .jpg type image for optimization.

won’t that bring down the qualitiy of the images?

not necessarily (lost, if i may take the floor). jpgs can be just as good as PNGs. the only drawback, though is transparency. GIFs can do transparency but they are only limited to 256 colors (:a:**).

Unless you are real desperate about that transparency, try to stay away from PNGs. They’re also big as well. Like bitmaps.

well im working with screen shots so i guess i could convert them into jpgs…thanks!

Thor: I believe the translation of the information of .png images in Flash make them more processor intensive than .jpg images. I know for a fact that is true if they contain transparency (especially partial transparency), but im not sure if it makes a difference if they don’t contain transparent areas.