# (Flash5) How can I make a loadMovie work from both button & next/previous command?

**URL:** https://forum.kirupa.com/t/flash5-how-can-i-make-a-loadmovie-work-from-both-button-next-previous-command/178746
**Category:** flash
**Created:** [February 13, 2006, 10:47pm UTC](https://forum.kirupa.com/t/flash5-how-can-i-make-a-loadmovie-work-from-both-button-next-previous-command/178746 "2006-02-13T22:47:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eyewire2000](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@eyewire2000](https://forum.kirupa.com/u/eyewire2000)
#### Post date: [February 13, 2006, 10:47pm UTC](https://forum.kirupa.com/t/flash5-how-can-i-make-a-loadmovie-work-from-both-button-next-previous-command/178746/1 "2006-02-13T22:47:55Z")

</div>

I have a photographer’s portfolio site in the works. I’m using loadMovie connected to thumbail buttons of each photo to show a larger version of the photo. Here is the script:

on (release) {  
\_root.contents.loadMovie(“1ed.swf”);  
}

Now the photographer would also like to have a next/previous arrow buttons so the user can click through like a slide show. Is there a way to have Flash know what movie is currently loaded and based on that information go to the next or previous?

I don’t have the capability to write this, but I’m really good at copy/paste!

Any help or direction to a tutorial would be greatly appreciated.
