> Date: Wed, 8 Sep 2010 18:16:44 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [Flashcoders] Impossible?
> 
> When in doubt about masking, skip the step where you assign the mask 
> property, but leave the mask shape added, it will show what parts the 
> mask will apply to.

I did that. I commented out this line:

                _fireSprite.mask = _fireMaskSprite;

and nothing prints to screen. Therefore, it would appear that the mask is 
applying to all of it. This is where I get confused. I'm thinking I must have a 
problem in where I'm assigning my various values:

            for (var i:int = 0; i < 256; i++) {
                var gp:int = new int();
                gp = _fireColor.getPixel(i, 0);
                if (gp < 1050112)
                {
                    _redArray.push(0);
                    _alphaArray.push(255);
                    _greenArray.push(0);
                    _blueArray.push(255);
                } else if (_bitmapFlag == false) {
                    _redArray.push(gp);
                    _alphaArray.push(0);
                    _greenArray.push(0);
                    _blueArray.push(0);
                } else {
                    _redArray.push(0);
                    _alphaArray.push(0);
                    _greenArray.push(0);
                    _blueArray.push(0);
                }
            }

When _bitmapFlag = true it's the mask; otherwise, that which is masked. When gp 
< 1050112 it's that which should be transparent. Any thoughts?
TIA,
George
                                          
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to