Is it possible to limit numeric values? i.e. if I was to set
the arrow keys to move an object around the stage, could some code
stop it from going beyond a value point. Or if I was using plus and
minus keys to scale an object could I stop it from scaling
beyond a particular value?
This would limit the referenced clip from going off the edge
of the stage,
given a stage width of 800. Normally, you should also take
into account the
clips width... etc. But this is essentially what you're
looking for - add
your movement or scaling value, then check the clip to make
sure it's not
out of your range.