# Changing path to movie clip

**URL:** <https://forum.kirupa.com/t/changing-path-to-movie-clip/210468>\
**Category:** Uncategorized\
**Created:** [December 19, 2006, 12:27am UTC](https://forum.kirupa.com/t/changing-path-to-movie-clip/210468 "2006-12-19T00:27:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vision\_Design](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vision\_Design](https://forum.kirupa.com/u/Vision_Design)\
**Post date:** [December 19, 2006, 12:27am UTC](https://forum.kirupa.com/t/changing-path-to-movie-clip/210468/1 "2006-12-19T00:27:52Z")

</div>

Here’s the code from a button that controls a movie clip on the main page:

```auto

on (release) {
    if (_root.currMovie == undefined) {
        _root.currMovie = "Home";
        container.loadMovie("Home.swf");
    } else if (_root.currMovie != "Home") {
        if (container._currentframe>=container.midframe) {
            _root.currMovie = "Home";
            container.play();
        }
    }
}

```

The code works fine when the button is on the main timeline. However, I have a new complicated rollover button which is no longer on the main timeline. How do I change the path to the “container” movie clip?

Thanks-
