# If clicked i don't want it to use the rollout command

**URL:** <https://forum.kirupa.com/t/if-clicked-i-dont-want-it-to-use-the-rollout-command/257589>\
**Category:** flash\
**Created:** [April 15, 2008, 3:11pm UTC](https://forum.kirupa.com/t/if-clicked-i-dont-want-it-to-use-the-rollout-command/257589 "2008-04-15T15:11:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaggard](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@khaggard](https://forum.kirupa.com/u/khaggard)\
**Post date:** [April 15, 2008, 3:11pm UTC](https://forum.kirupa.com/t/if-clicked-i-dont-want-it-to-use-the-rollout-command/257589/1 "2008-04-15T15:11:45Z")

</div>

Hi,

I have created a button that has a rollover function but i don’t want it to do it when i click it just when i rollover. (it works fine if i click the button and keeps my mouse over the button but as soon as i move my mouse it of course goes and do the (on(rollOut){titan\_button.gotoAndPlay(13);} that i asked it to do) I also want to tell it to not do that if it’s clicked, make sense? So is there a code that i could use that says something like “if clicked don’t go and on(rollOut){titan\_button.gotoAndPlay(13);} just go and on (release) {titan\_button.gotoAndPlay(24);}” sort of thing…

this is what i have  
on(rollOver){  
titan\_button.gotoAndPlay(2);  
}  
on(rollOut){  
titan\_button.gotoAndPlay(13);  
}  
on (release) {  
titan\_button.gotoAndPlay(24);  
}

then i would like to have one that says “if clicked don’t do the” ( on(rollOut){  
titan\_button.gotoAndPlay(13);}) just do the on (release) {titan\_button.gotoAndPlay(24);}

anybody know if there is a code like that or what i can do to not have that played again when i have clicked my button?
