Typically, whenever a new code is detected the check engine light will flash. However, if the fault is intermittent, the light may go out by itself (though I would think the code would still be stored). Perhaps it was just a loose gas cap or some code that is not deemed important enough to store.