It says a player is considered flatfooted until he has taken his action. I have a fighter with a reach weapon and combat reflexes. If the enemy goes first and approches my fighter, because of combat reflexes and reach weapon, I get an AOO. After I swing am I now still flatfooted until my offical turn or would I not be flatfooted because I had acted already?