What i’m trying to do is: check if one item of my movieclip is a button and if it is then check its vertical postion and if it’s < 70 then disable the button…

so i’m using this but it doesn’t seem to work so if someone could tell me why?

for(var prop in this){
if(typeof this[prop] == “button”){
if(this[prop]._y < 70){this[prop].enabled = false}else{{this[prop].enabled = true}