# Static vars and the 'in' operator; Question of interest

**URL:** <https://forum.kirupa.com/t/static-vars-and-the-in-operator-question-of-interest/311015>\
**Category:** flash\
**Created:** [June 25, 2010, 5:26am UTC](https://forum.kirupa.com/t/static-vars-and-the-in-operator-question-of-interest/311015 "2010-06-25T05:26:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [June 25, 2010, 5:26am UTC](https://forum.kirupa.com/t/static-vars-and-the-in-operator-question-of-interest/311015/1 "2010-06-25T05:26:06Z")

</div>

I was surprised to find that when trying to determine if an object has a property using the ‘in’ operator it does not return ‘true’ if the property is a ‘public static var’ (it does work if it is just a public var). Can anyone shed some light on the logic behind this ?

[http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/operators.html#in](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/operators.html#in)
