I got your capx.
My example wont work with 8direction the way it is now.
If you are using 8direction you dont need mirror or flip, as the behavior can do it for itself. You will need to separate left, right, top and down variables and different dashes for each one.
Use the technique (time and global variable) to make left. Then, create all over again for right, and so on... If even tough you can't make it, drop me a line.