First off, if you could put that between code tags it would look a bit nicer. I copied it into Notpad++ to read though.
I did notice that when pressing S in midair, you have
Looks like you accidentally put a typo before the parentheses. You should've seen an error for that.
As for pressing A though, not sure what the problem would be. Maybe there's something going on in the "attack1" frame itself? Does it have any code?
I did notice that when pressing S in midair, you have
Code:
hero.gotoAndStop.('attack2');
Looks like you accidentally put a typo before the parentheses. You should've seen an error for that.
As for pressing A though, not sure what the problem would be. Maybe there's something going on in the "attack1" frame itself? Does it have any code?