Believe it or not, I just found out that '^' does NOT mean 'raise x to its nth power' in flash. It is the bitwise XOR.
I feel as though I've been speaking English for years and only just came to the realisation that 'orange' is spelt O-R-A-N-G-E and not O-R-I-N-G-E.
Sorry, Math.pow(x, n).