How to check a mc's _x & _y in a range?

I’d like to check if a mc’s _x and _y properties are between a certain range, but can’t find out how to. Now that I’m typing this (I can’t check it in Flash right now at the moment), I’m thinking if this will work:

let’s say the mc is called mcMyMovie and it has to be between 90 & 100 (both for x and y)

if(mcMyMovie._x =< 100 && mcMyMovie._x =>90 && mcMyMovie._y =<100 && mcMyMovie._y =>90) {

}

Would this work or is there a shorter way to write this down in code ? In maths I’d write something like 90 < mcMyMovie._x <100.

Thanks! :slight_smile:

That code should work, but no, as far as i know there is not an easier way to write that. Ill give ya a yell if i think of sumin.

thanks very much, I’ll give it a go :slight_smile: