# Functions across .as files or in timeline?

**URL:** https://forum.kirupa.com/t/functions-across-as-files-or-in-timeline/238582
**Category:** flash
**Created:** [September 12, 2007, 8:48pm UTC](https://forum.kirupa.com/t/functions-across-as-files-or-in-timeline/238582 "2007-09-12T20:48:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zantetsuken](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@zantetsuken](https://forum.kirupa.com/u/zantetsuken)
#### Post date: [September 12, 2007, 8:48pm UTC](https://forum.kirupa.com/t/functions-across-as-files-or-in-timeline/238582/1 "2007-09-12T20:48:08Z")

</div>

Is there a way to call a function from another .AS file within your classpath? Better yet, is there a way to call a function from your timeline of a .fla to a .as file in your classpath? Here is the error I am getting:

```auto
ReferenceError: Error #1065: Variable currTool is not defined.
 at Cir/onMouseDown()

```

currTool is a function on frame 1 of my main timeline and Cir is one of my .as files.
