Flash Skips Frames

Hello,

I have a flash movie. There is a timeline and a frame with some code.

The problem is that Flash skips this frame with code sometimes. It does this absolutely randomly. It can loop 100 times and skip it on 101st. It can skip it on 3rd run. I am totally confused.

I’m using AS3, always put all the code in separate file. But what should one do if he needs to put EventDispatcher into one of the frames, for example? There is no guaranty that the code will be run!

Any would be appreciated, thanks.