# Accessing a function in the root timeline

**URL:** <https://forum.kirupa.com/t/accessing-a-function-in-the-root-timeline/306492>\
**Category:** flash\
**Created:** [March 16, 2010, 4:22pm UTC](https://forum.kirupa.com/t/accessing-a-function-in-the-root-timeline/306492 "2010-03-16T16:22:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [March 16, 2010, 4:22pm UTC](https://forum.kirupa.com/t/accessing-a-function-in-the-root-timeline/306492/1 "2010-03-16T16:22:08Z")

</div>

Hello,

I have a document class, where i have a function called A.

On the timeline of my Fla, I have one function called B.

I want at some point in my Document class, for function A to call function B.

How could I access this? My AS2 ways would be

```auto
_level0.B();

```

So I thought maybe as3 would be along the lines of

```auto
root.B();

```

or

```auto
this.B();

```

Any help thanks…\>\>
