removeChild trouble!

Aiaiaiai… my pre-loader ‘custom_animation’ is on frame 1.

Once the pre-loader completed it jumps to frame 2 as you can see in the code below.

While navigating through my project (up to 65 frames) and the play-head reaches frame one again, the pre-loader appears and plays its animation.
(Though it is actually not loading anything!)

Moving the play-head away from frame 1 and the pre-loader disappears again.
Getting back to frame 1 and ONLY NOW the pre-loader won’t show again.

Question(s):
Alias the pre-loader is removed only the 2nd time running the code below?
Why does the movie-clip ‘custom_animation’ appears once it is removed?
How can I make sure it is removed once and for all after the project is loaded?

Please HELP!
Thanks,
Jaman


addEventListener(Event.ENTER_FRAME, loading);
function loading(event:Event)
{
	var bytestotal = stage.loaderInfo.bytesTotal;
	var bytesloaded = stage.loaderInfo.bytesLoaded;
	var sclbar = Math.round(bytesloaded * 100 / bytestotal);
	custom_animation.gotoAndPlay(sclbar);
	if (bytesloaded >= bytestotal)
	{
		gotoAndPlay(2);
		removeEventListener(Event.ENTER_FRAME, loading);
		removeChild(custom_animation);
	}
}