# Help - Passing Parameters with LoadMovie

**URL:** https://forum.kirupa.com/t/help-passing-parameters-with-loadmovie/218461
**Category:** flash
**Created:** [March 7, 2007, 11:25pm UTC](https://forum.kirupa.com/t/help-passing-parameters-with-loadmovie/218461 "2007-03-07T23:25:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sta225](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sta225](https://forum.kirupa.com/u/sta225)
#### Post date: [March 7, 2007, 11:25pm UTC](https://forum.kirupa.com/t/help-passing-parameters-with-loadmovie/218461/1 "2007-03-07T23:25:03Z")

</div>

Hi, I’m trying to create a directory page for my photogallery. On the directory page, I have buttons that when pressed should call a movieclip template to be loaded into the container and send a parameter with it to indicate which photo I want to see. My code is below, but it just loads the container and not the swf movie.

How can I pass a parameter properly? Can someone advise? Thanks!

btnArt02.onRelease = function() {  
\_root.container.loadMovie(“ymgalleryind.swf?artindex=2”);  
container.\_x = 0 ;  
container.\_y = 0 ;  
};

btnArt03.onRelease = function() {  
\_root.container.loadMovie(“ymgalleryind.swf?artindex=3”);  
container.\_x = 0 ;  
container.\_y = 0 ;  
};
