# How to execute a function on the root from a movie clip

**URL:** https://forum.kirupa.com/t/how-to-execute-a-function-on-the-root-from-a-movie-clip/268437
**Category:** Uncategorized
**Created:** [August 13, 2008, 8:58pm UTC](https://forum.kirupa.com/t/how-to-execute-a-function-on-the-root-from-a-movie-clip/268437 "2008-08-13T20:58:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![qhrome27](https://avatars.discourse-cdn.com/v4/letter/q/f04885/32.png) [@qhrome27](https://forum.kirupa.com/u/qhrome27)
#### Post date: [August 13, 2008, 8:58pm UTC](https://forum.kirupa.com/t/how-to-execute-a-function-on-the-root-from-a-movie-clip/268437/1 "2008-08-13T20:58:31Z")

</div>

Hello,

I am fairly new to AS3.0, so this is kind of a newbie question.

I have a function on the root timeline called addWave()

I would like to call that function from within a movie clip, but when I use  
root.addWave(); or parent.addWave();  
Flash acts like I am crazy

1061: Call to a possibly undefined method addWave through a reference with static type flash.display:DisplayObject.

I would like to know how to run a function from another timeline in AS3.0.

PS: I am not using packages, so please give me a packageless solution

Thanks.
