If after x seconds gotoandplay

I have a video player and I want to read the duration counter so that after say 5 seconds the video fades in some movie clips pauses for a few seconds then fades the movieclips out.

heres what i have so far as a test I have used gotoand play . If I insert this the movie does not reach 5 seconds but goes to frame 8 straight away. If I try a < or == nothing happens ?

// Get video duration
ns.onMetaData = function(obj) {
duration = obj[“duration”];
var minutes2:Number = Math.round(duration/60);
var seconds2 = Math.round(duration%60);
if (seconds2<10) {
seconds2 = “0”+seconds2;

	}
	if (seconds2&lt;5) {

gotoAndPlay(8);

}

	durationDisplay = minutes2+":"+seconds2;
};

};