Based on my knowledge, you can travel after you get your AP. It doesn't matter how long you filed I-485 or whether your I-140 is approved or not.