# Path issue with function?

**URL:** <https://forum.kirupa.com/t/path-issue-with-function/108936>\
**Category:** Uncategorized\
**Created:** [April 29, 2004, 10:58pm UTC](https://forum.kirupa.com/t/path-issue-with-function/108936 "2004-04-29T22:58:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [April 29, 2004, 10:58pm UTC](https://forum.kirupa.com/t/path-issue-with-function/108936/1 "2004-04-29T22:58:45Z")

</div>

Does anyone know how I can take the following script from the root level and invoke the functions within an MC?

```auto

//initiate timer paramaters
timerInit = function() {
	//getting the time at this point
	startTime = getTimer()/1000;
	//setting the waiting period
	waitFor = 3;
	//5 seconds
}

//start the timer
timerPause = function () {
	if (waitFor>((getTimer()/1000)-startTime)) {
		gotoAndPlay("pause");
	} else {
		gotoAndPlay("begin");
	}
}

```
