# Accessing Function from another timeline

**URL:** <https://forum.kirupa.com/t/accessing-function-from-another-timeline/88401>\
**Category:** flash\
**Created:** [April 28, 2005, 10:27pm UTC](https://forum.kirupa.com/t/accessing-function-from-another-timeline/88401 "2005-04-28T22:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [April 28, 2005, 10:27pm UTC](https://forum.kirupa.com/t/accessing-function-from-another-timeline/88401/1 "2005-04-28T22:27:37Z")

</div>

Hi,

I’m trying to access this function from another timeline. This function resides on the root level and I want to access it from a button within an MC on the main timeline. How can I do this?

```auto
vol_onBTN.onRelease = function() {
       	vol_offBTN._visible = true;
		vol_onBTN._visible = false;
	   if (soundTrack.playing) {
                clearInterval(sndObj.interval);
                soundTrack.interval = setInterval(soundTrack, "fadeOut", 200/12, 1);
        }
};

```
