# Accessing root for .as file

**URL:** https://forum.kirupa.com/t/accessing-root-for-as-file/275400
**Category:** Uncategorized
**Created:** [November 13, 2008, 1:26pm UTC](https://forum.kirupa.com/t/accessing-root-for-as-file/275400 "2008-11-13T13:26:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dash9000](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@dash9000](https://forum.kirupa.com/u/dash9000)
#### Post date: [November 13, 2008, 1:26pm UTC](https://forum.kirupa.com/t/accessing-root-for-as-file/275400/1 "2008-11-13T13:26:37Z")

</div>

I have searched extensively, so please accept my apologies if this has already been answered.

I am trying to call a function in my main FLA from an .as file. The situation is like this:

Main FLA includes an .as file which itself includes a second .as file:

Main -\> .as -\> .as

I wish to make the function call from the second .as file but I do not know how to address it. I seem to be able to address other items in the main FLA such as:

```auto
[COLOR=Blue]_root[/COLOR].testText.[COLOR=Blue]text[/COLOR] = "found main from .as";

```

which works, whereas the following does not:

```auto
[COLOR=Blue]_root[/COLOR].testFunction(testVar);

```

I think I must have missed something very basic, I appreciate any help. Thanks.

Al
