Advanced Masking

Oh k now. I have this huge bitmap that is laggin my Flash file so what I was going to do was instead of having an alpha fade for it, I would just have a mask do an alpha fade to show it but it won’t work. Can somebody help me?

You can’t tween a regular mask, but I believe you can with setMask. Run a search for it, it’s been discussed before.

i got it hehe:


with (_root.createEmptyMovieClip("maskTarget", 1)) {
	lineStyle(1, 0xff0000, 100);
	beginFill(0x000000, 100);
	moveTo(0, 0);
	lineTo(100, 0);
	lineTo(100, 100);
	lineTo(0, 100);
	lineTo(0, 0);
	endFill();
	_x = (Stage.width - _width) / 2;
	_y = (Stage.height - _height) / 2;
}
with (_root.createEmptyMovieClip("mask", 2)) {
	beginFill(0x660099, 100);
	moveTo(0, 0);
	lineTo(100, 0);
	lineTo(100, 100);
	lineTo(0, 100);
	lineTo(0, 0);
	endFill();
	_x = maskTarget._x + (_width/2);
	_y = maskTarget._y + (_height/2);
}
maskTarget.setMask(mask);
mask.onEnterFrame = function(){
	_alpha -= 5;
}

The question was really for Norie. A-hole make me look like a tard…

*Originally posted by DigitalPimp *
**The question was really for Norie. A-hole make me look like a tard… **

i dont have to help you with that you do it all on your own!

I think Kirupas idea of QuickBan was a good one, well as long as I become a mod… Your just bein’ a smart *** because it is too late to fire you now… But you better hope you never need a letter of recommendation. Also, remember I doubt Rusty’s will give you one. :wink: Mr. Casanova.