&& operation in actionscript
Posted
by wcpro
on Stack Overflow
See other posts from Stack Overflow
or by wcpro
Published on 2010-06-14T21:06:08Z
Indexed on
2010/06/14
21:12 UTC
Read the original article
Hit count: 128
actionscript-3
In the following code the line after the if statement gets run even when "BITMAP" is null. Why is this?
public function get BitmapHeight ()
{
if (_bitmapHeight == 0 && BITMAP != null)
_bitmapHeight = BITMAP.bitmapData.height;
return _bitmapHeight;
}
© Stack Overflow or respective owner