# Sliding background on mouse click?

**URL:** <https://forum.kirupa.com/t/sliding-background-on-mouse-click/270910>\
**Category:** flash\
**Created:** [September 16, 2008, 3:41am UTC](https://forum.kirupa.com/t/sliding-background-on-mouse-click/270910 "2008-09-16T03:41:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elusive1151](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Elusive1151](https://forum.kirupa.com/u/Elusive1151)\
**Post date:** [September 16, 2008, 3:41am UTC](https://forum.kirupa.com/t/sliding-background-on-mouse-click/270910/1 "2008-09-16T03:41:55Z")

</div>

Hi, I am a newbie to flash, so I appologize if this is a stupid question.

I am trying to create something similar to [THIS](http://www.kirupa.com/developer/mx2004/menu_with_slider.htm) but in flash MX - the difference being that instead of a slider moving through the buttons, the entire background moves horizontally into position according to whatever button is selected. I have five buttons and one large jpeg divided into five segments that relate accordingly.

again, i’m new to actionscript and i am using an earlier version of flash, but any help or advice on how to successfully achieve this (or if it cannot be done) would be appreciated.

thanks in advance! 🙂
