# Calling a function on the main timeline?

**URL:** https://forum.kirupa.com/t/calling-a-function-on-the-main-timeline/314403
**Category:** flash
**Created:** [September 27, 2010, 9:35pm UTC](https://forum.kirupa.com/t/calling-a-function-on-the-main-timeline/314403 "2010-09-27T21:35:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)
#### Post date: [September 27, 2010, 9:35pm UTC](https://forum.kirupa.com/t/calling-a-function-on-the-main-timeline/314403/1 "2010-09-27T21:35:04Z")

</div>

So this was quite simple in AS2, but considering that \_root is no longer around, how can I call a function that is on the main time line from a nested movie clip?

This is what I have inside my movie clip:

```auto
this.hit_mc.addEventListener(MouseEvent.CLICK, updateScore);

```

I tried using Stage.updateScore, but that didn’t work either. This is the error I’m getting:

_1119: Access of possibly undefined property Stage through a reference with static type flash.display:Stage._
