# Calling a user-defined function

You can use a target path to call a function in any Timeline from any Timeline, including from the Timeline of a loaded movie. If a function was declared using the `_global` identifier, you do not need to use a target path to call it.

To call a function, enter the target path to the name of the function, if necessary, and pass any required parameters inside parentheses. For example, the following statement invokes the function `sqr` in the movie clip `MathLib` on the main Timeline, passes it the parameter 3, and stores the result in the variable `temp`:

    var temp = _root.MathLib.sqr(3);

The following example uses an absolute path to call the `initialize` function that was defined on the main Timeline and requires no parameters:

    _root.initialize();

The following example uses a relative path to call the `list` function that was defined in the `functionsClip` movie clip:

    _parent.functionsClip.list(6);