# Button question \[renamed\]

**URL:** <https://forum.kirupa.com/t/button-question-renamed/195974>\
**Category:** Uncategorized\
**Created:** [August 4, 2006, 10:28am UTC](https://forum.kirupa.com/t/button-question-renamed/195974 "2006-08-04T10:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evex](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@Evex](https://forum.kirupa.com/u/Evex)\
**Post date:** [August 4, 2006, 10:28am UTC](https://forum.kirupa.com/t/button-question-renamed/195974/1 "2006-08-04T10:28:03Z")

</div>

hi,

i am new at ths forum, but istill know how to use flash, but not too much in actionscript.

Thus, i have a problem that i cant solve.

I have a button that is actually a MC but it performs a function as a button(its more flexible whaen it is a MC).  
So i have a script written in “Scence 1” for the button on an empty layer in a last keyframe which works. Here is the script:

this.app\_mc.onRollOver = function() {  
app\_mc.gotoAndPlay("\_over")  
}

this.app\_mc.onPress = function() {  
app\_mc.gotoAndPlay("\_hit")  
}

this.app\_mc.onRollOut = function() {  
app\_mc.gotoAndPlay("\_up")  
}

AS you see “app\_mc” is my MC button 🙂 . Noe in my firs part of my script it goes to the rite frame, preformes the rite function but it stops at the end of “\_over” , but i want it to repeat again from that frame.

Please i need help in doing that i can’t fgure out how. ☹

P.S. I tried going in to the “app\_mc” itself and try an “if” tatment or this.app\_mc.gotoAndPlay("\_over"); , but it didn’t work. Please help SOS.
