&& 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: 115

Filed under:

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

Related posts about actionscript-3