&& operation in actionscript
- by wcpro
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;
}