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!