# Help targeting buttons

**URL:** <https://forum.kirupa.com/t/help-targeting-buttons/84136>\
**Category:** Uncategorized\
**Created:** [March 24, 2005, 9:42pm UTC](https://forum.kirupa.com/t/help-targeting-buttons/84136 "2005-03-24T21:42:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dxyner](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Dxyner](https://forum.kirupa.com/u/Dxyner)\
**Post date:** [March 24, 2005, 9:42pm UTC](https://forum.kirupa.com/t/help-targeting-buttons/84136/1 "2005-03-24T21:42:05Z")

</div>

I found a very simple slideshow tutorial and thought I could adapt the next frame and previous frame buttons. So far I’ve had no luck.

on (release) { if (this.\_currentframe == this.\_totalframes) { gotoAndStop(1); } else { nextFrame(); } }

That’s the code for the next button (obviously) and I need it to control the .swf on level 2 ☹

I’ve recieved such helpfull replies to all my other questions I hope you can help me out again.

Thanks
