# Problem with paths

**URL:** <https://forum.kirupa.com/t/problem-with-paths/151157>\
**Category:** flash\
**Created:** [June 13, 2005, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-paths/151157 "2005-06-13T20:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![logand](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@logand](https://forum.kirupa.com/u/logand)\
**Post date:** [June 13, 2005, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-paths/151157/1 "2005-06-13T20:09:17Z")

</div>

[left]I’m having some trouble with some paths…I used the tutorial ‘Transistions between .swf’s’ and they had they button on the main timeline. Well, my problem is that my button is inside a movie clip which is located on the main timline. Does anybody know the correct path for me to use?  
Here is the current AS for the button:  
on (press) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “shows”;  
\_root.container.loadMovie(“shows.swf”);  
} else if (\_root.currMovie != “shows”) {  
if (\_root.container.\_currentframe \>= \_root.container.midframe) {  
\_root.currMovie = “shows”;  
container.play();  
}

Thanks,  
Logan  
[/left]
