Photo gallery using XML, passing params

Hi all,

I’ve been following the tut:

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)) {
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];

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]