[FMX] Funtion stopping a hitTest

Hi. I’m working on a gamem and am having a fairly strange problem.

I have bunch of hit tests (testing for a hit with in-game items such as coins and walls with the main charecter). Then I have a function that converts a number (for the game time) into H:M:S form.

Some how, when the conversion function runs, it stops some of the hitTests from working. It doesnt stop them all. There are two things the hitTests are looking for. One kind of hT is the main char checking for hitting items, the other is the items hitting the main char. When the function runs, the hit tests that test for when an item hits the main char doesnt work.

Heres some code

The hitTest for when a coin hits the main charecter

onClipEvent (enterFrame) {
	point = new object();
	point.x = _x;point.y = _y;
	localToGlobal(point);
//_root.S is the main char
	if (_root.S.hitTest(point.x,point.y,true)) {
//_root.tcoins is a counter for how many coins you collected
		_root.tcoins++;
//makes the coin movie clip goto a blank frame as if the coin disapears
		_parent.gotoAndPlay("end");
	}
}

Heres the function:

_global.timeConv = function(x){
	x++;
	noS=Math.ceil(x+.0001)-1;
	s=Math.round((x-noS)*100)-2;
	h=noS/60;
	m=h-(Math.ceil(h)-1);
	h=h-m;
	m=Math.ceil(((m*60)-1)+.0001)-1;
	if (s<0) s=0;
	if (s<10)s="0"+s;
	if (m<10)m="0"+m;
	return(h+":"+m+":"+s);
}

This basically takes a number like 1.25 and converts it to the form, “0:01:25” or “90.35” would be “1:30:35”

Any help would be helpfull