You can do this with keyboard events, for example "Key Left is down - Spite set mirrored", "Key Right is down - Spite set NOT mirrored".
Or you can compare the Sprite.8direction.movingAngle, if it's between 90 and 270 degrees, set mirrored.
Check out the Tutorials section, there are plenty of examples:
scirra.com/tutorials/all