> From: [email protected]
> Date: Fri, 3 Sep 2010 16:03:08 +0200
> Subject: Re: [Flashcoders] Impossible?
> To: [email protected]
>
> why not make 2 bitmaps, one transparent and one not, mask the non
> transparent one to "reveal" the transparent one, will look the same as what
> you are trying to acheive i think...
I'm getting tripped up on trying to make a mask with bitmaps like I would with
movie clips:
private function _onLoadedAll(e:Event):void
{
_onLoadedContent(e, _bitmapFlag = false);
_onLoadedContent(e, _bitmapFlag = true);
}
private function _onLoadedContent(e:Event, _bitmapFlag:Boolean):void {
...
if (_bitmapFlag == false)
{
_fire = new BitmapData(865, 92, _bitmapFlag, 0xffffff);
addChild(new Bitmap(_fire));
_fire.mask = _fireMask;
} else {
_fireMask = new BitmapData(865, 92, _bitmapFlag, 0xffffff);
addChild(new Bitmap(_fireMask));
}
which throws this error:
1119: Access of possibly undefined property mask through a reference with
static type flash.display:BitmapData.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders