# How Next & Previous Buttons will work

**URL:** https://forum.kirupa.com/t/how-next-previous-buttons-will-work/290907
**Category:** flash
**Created:** [June 22, 2009, 6:15am UTC](https://forum.kirupa.com/t/how-next-previous-buttons-will-work/290907 "2009-06-22T06:15:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeoshamsi](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jeoshamsi](https://forum.kirupa.com/u/jeoshamsi)
#### Post date: [June 22, 2009, 6:15am UTC](https://forum.kirupa.com/t/how-next-previous-buttons-will-work/290907/1 "2009-06-22T06:15:16Z")

</div>

Hi guys!

Once again i need the help of u all genius…

On main stage, I have Movie Clip name “container” which have 4 movie clips (pics) with different instance names. on same main Stage i have two buttons of ““PREVIOUS”” & ““NEXT”” … what i want to do that if i run my movie,… Movie clip No:1(Pic1) will come on stage by default and on press next (pic2) come from right to left and on press previous button, previous movie clip(pic) come back again. simple i want to make it gallery for me or is it possible that i can do it with xml that movie clip can load pic from XML…so kindly help me how can i do it…

I am waiting for your nice logics with prompt reply. Thanks…

Regards.  
Rehan
