# Photo gallery using XML, passing params

**URL:** <https://forum.kirupa.com/t/photo-gallery-using-xml-passing-params/235070>\
**Category:** flash\
**Created:** [August 8, 2007, 7:11am UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-passing-params/235070 "2007-08-08T07:11:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h\_2](https://avatars.discourse-cdn.com/v4/letter/h/d26b3c/32.png) [@h\_2](https://forum.kirupa.com/u/h_2)\
**Post date:** [August 8, 2007, 7:11am UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-passing-params/235070/1 "2007-08-08T07:11:37Z")

</div>

Hi all,

I’ve been following the tut: [http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm).

Insted of providing images in the XML-file I’m providing swf-files, a movie called player.swf. When I click around the different thumbs I’ve got in my scroller player.swf loads into the empty clip and plays. I do wish however to pass on the p-value to player.swf when i use loadMovie. How would I do that?

function nextImage() {  
if (p\<(total-1)) {  
p++;  
if (loaded == filesize) {  
picture.\_alpha = 0;  
// I wish to pass on the value for “p” to my movie called player.swf  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
picture\_num();  
}  
}  
}

In player.swf I try to catch the value with [FONT=Courier New]mx.core.Application.application.parameters.p were p would be the p value provided from the gallery.[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]Is it doable?[/FONT]  
[FONT=Courier New]Thanks in advance,[/FONT]  
[FONT=Courier New]Hugo[/FONT]
