# Problem with button

**URL:** <https://forum.kirupa.com/t/problem-with-button/178135>\
**Category:** Uncategorized\
**Created:** [February 7, 2006, 11:12pm UTC](https://forum.kirupa.com/t/problem-with-button/178135 "2006-02-07T23:12:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cocoj](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@cocoj](https://forum.kirupa.com/u/cocoj)\
**Post date:** [February 7, 2006, 11:12pm UTC](https://forum.kirupa.com/t/problem-with-button/178135/1 "2006-02-07T23:12:01Z")

</div>

i have a button that is a mc, looks like this  
 ![](http://www.cocoj.ro/prob/1.gif)

and another mc in wich i load my swf files

![](http://www.cocoj.ro/prob/2.gif)  
the action that i need for my button is

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “section1”;  
container.loadMovie(“section1.swf”);  
} else if (\_root.currMovie != “section1”) {  
if (container.\_currentframe \>= container.midframe) {  
\_root.currMovie = “section1”;  
container.play();  
}  
}  
}  
but my button is the same mc but with difrent text that i assign in the main mc

how can i make this work?

the action is made from the tutorial found here: [http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)  
please help
