# Pause function from main timeline

**URL:** <https://forum.kirupa.com/t/pause-function-from-main-timeline/322267>\
**Category:** flash\
**Created:** [May 16, 2011, 4:15pm UTC](https://forum.kirupa.com/t/pause-function-from-main-timeline/322267 "2011-05-16T16:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Winstonian](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@Winstonian](https://forum.kirupa.com/u/Winstonian)\
**Post date:** [May 16, 2011, 4:15pm UTC](https://forum.kirupa.com/t/pause-function-from-main-timeline/322267/1 "2011-05-16T16:15:21Z")

</div>

Hello, I want to invoke a function from the main movie.  
the function is located in a loaded swf.  
I have a pause button that’s on the main timeline/swf.  
How do i trigger this function from the main swf?

Here is the function:

function welcomePause():void {

```
Tweener.pauseTweens(welcomePopUp.welcomeText_1);
Tweener.pauseTweens(welcomePopUp.welcomeText_2);
Tweener.pauseAllTweens();

```

}

I tried doing it this way but it didn’t work:  
within my btn click, etc.

MovieClip(this.child.child.child).welcomePause();
