# \_root.function not calling?!

**URL:** <https://forum.kirupa.com/t/-root-function-not-calling/226364>\
**Category:** flash\
**Created:** [May 20, 2007, 7:59pm UTC](https://forum.kirupa.com/t/-root-function-not-calling/226364 "2007-05-20T19:59:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [May 20, 2007, 7:59pm UTC](https://forum.kirupa.com/t/-root-function-not-calling/226364/1 "2007-05-20T19:59:11Z")

</div>

Hi! 🍺

Please, have a look on the following code. As you can see, it defines a function in the main timeline:

```php

function movf(){
    //does something;
}

```

Then I load a movie into that main timeline, and from within that movie i call the function:

```php

mc.onRelease = function(){
    _root.movf();
}

```

But it doesnt work. Why?!
