[AS2] Objects Carried Between frames by gotoAndStop()

I am creating a point and click game. In the bottom corners of the screen there are two arrows for changing the area. When these arrows are clicked, the only thing that is supposed to happen is a frame change. For some reason, objects are being carried from the frame they are supposed to be on to the frame that is changed to and they stack up each time the frame changes. I don’t even see how this is possible without writing code specifically for it.
Here is the code in one of the objects being transferred:


onClipEvent(load)
{
	var DepthCorrection = 0;
}onClipEvent(enterFrame)
{
	this.swapDepths(this._y + DepthCorrection);
}

Nothing in that could possibly make it move to a different frame and it has no instance name so nothing can reference it to bring it to one.

Here is the code for changing frames:


onClipEvent(load)
{
	var Frame = _global.Area + 1;
}onClipEvent(enterFrame)
{
	if(_global.NewArea != _global.Area)
	{
		Frame = NewArea + 1; //The area is one less than the frame because the first frame is not an area
	}
	_root.gotoAndStop(Frame);
}

Is this some sort of glitch in flash? I’ve had problems with gotoAndStop() before where it went to the wrong frame and only displayed certain objects on that frame. Could these be connected?