# Help getting to the root

**URL:** <https://forum.kirupa.com/t/help-getting-to-the-root/192107>\
**Category:** Uncategorized\
**Created:** [June 26, 2006, 6:07am UTC](https://forum.kirupa.com/t/help-getting-to-the-root/192107 "2006-06-26T06:07:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [June 26, 2006, 6:07am UTC](https://forum.kirupa.com/t/help-getting-to-the-root/192107/1 "2006-06-26T06:07:21Z")

</div>

Doing this tutorial with my own library. [http://www.kirupa.com/developer/mx2004/transitions2.htm](http://www.kirupa.com/developer/mx2004/transitions2.htm)

My buttons are within a movie clip like the Note mentions. However I have altered my action script to what I think is corrent and cant seem to get the swf’s to unload and reload new.

```auto
 on buttons:
on (release) { 
if (_root.currMovie == undefined) { 
_root.currMovie = "gallery"; 
_root.container.loadMovie("gallery.swf"); 
} else if (_root.currMovie != "gallery") { 
if (_root.container._currentframe >= _root.container.midframe) { 
_root.currMovie = "gallery"; 
_root.container.play(); 
} 
} 
} 

```

Is this the correct way of doing it or if it is then it must be something with my swf’s that are loading. I can get the first to load fine with:

```auto

_root.currMovie = "home"; 
container.loadMovie(_root.currMovie+".swf"); 

```

but when button click no response. any help is appreciated.  
Thanks  
MT
