I create a preloader using the following actionscript 2.0

stop();
preloader.onEnterFrame = function()
{
filesize = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize)
{
preloader.loadBar._xscale = 100*loaded/filesize;
}
else
{
preloader._visible = false;
gotoAndStop(2);
}
};

I put this on frame 1 of the action layer.
then created a play button using
on(press){
play();
}

But only preloader loads.

I created the preloader file "cnytest.fla" and "cnydrft.fla" where the play button is.
They work fine separately , but when I try to combine the two the above occurs