# Duplicate button actions?

**URL:** <https://forum.kirupa.com/t/duplicate-button-actions/231146>\
**Category:** Uncategorized\
**Created:** [July 2, 2007, 2:42pm UTC](https://forum.kirupa.com/t/duplicate-button-actions/231146 "2007-07-02T14:42:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![insanerockjunky](https://avatars.discourse-cdn.com/v4/letter/i/5daacb/32.png) [@insanerockjunky](https://forum.kirupa.com/u/insanerockjunky)\
**Post date:** [July 2, 2007, 2:42pm UTC](https://forum.kirupa.com/t/duplicate-button-actions/231146/1 "2007-07-02T14:42:43Z")

</div>

Hi everyone!

I had a question on using multiple “on(press)” actions for a button/movieclip combo that’s got me puzzling :puzzle:.

Here’s the situation:  
I’ve got a movie clip that has motion and button press actions in it. When I apply a “swapDepths” code to this movie clip in the main site, it seems to cancel out the embedded actions in the movieclip’s buttons.

Sooo, I tried an on(press){this.gotoAndPlay(“framename”);} and it seems to work for 1/2 the actions. Is there a way to create an “on the second press” kind of script so I can jump to the next frame (i.e. “framename2”) within the movieclip to activate those button actions?

I think the prob. may be similar to an earlier post (see below…)

> **[Two function button problem...](https://www.kirupa.com/forum/showthread.php?t=153442)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

Any help would be greatly appreciated!!
