What is wrong with this!

I have used this script so many times, but it isn’t working, why? I am simply loading the swf file before it plays. This is the script:

onClipEvent(load) {
totalframes = _totalframes;
}
onClipEvent(enterFrame) {

if(_framesloaded == totalframes) {
    nextScene();
    trace('this');
}

}

It will trace ‘this’ repeatingly, but it will not go to the next scene!!! What is wrong with this? Also, I am exporting this as Flash Player 5.

please help me, thanks.