# Passing a global variable and slide show pro

**URL:** <https://forum.kirupa.com/t/passing-a-global-variable-and-slide-show-pro/246879>\
**Category:** Uncategorized\
**Created:** [December 15, 2007, 8:48pm UTC](https://forum.kirupa.com/t/passing-a-global-variable-and-slide-show-pro/246879 "2007-12-15T20:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitalpha](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@kitalpha](https://forum.kirupa.com/u/kitalpha)\
**Post date:** [December 15, 2007, 8:48pm UTC](https://forum.kirupa.com/t/passing-a-global-variable-and-slide-show-pro/246879/1 "2007-12-15T20:48:43Z")

</div>

i’m using a mixture of slideshowpro, menuslide and goto()'s nice thumbnailer.

i’m trying to load an album in slideshowpro from an external thumb in a different mc. this thumb is loaded via xml.

this is some of the code from the thumbs mc

newThumb.link=root.childNodes\*.attributes.link;  
newThumb.albumno=root.childNodes\*.attributes.albumnumber;  
newThumb.cont.loadMovie(image);  
newThumb.onRelease=function() {  
\_global.bttnLink = this.link;  
\_root.menuSlide(\_root.contentHold[bttnLink]);

\_global.albumLink = this.albumno;  
\_root.contentHold.content30.my\_ssp.loadAlbum(xxx);

}

xxx needs to be the variable " albumnumber" loaded via the xml, not sure if i need to use the global " albumLink" or " this mc’s " albumno"  
if i replace xxx with a number it works, but of course all thumbs chance to the same album… so the path is correct.

so i think it is just a case of the syntax and/or path between the brackets to load the variable ??? not sure, newbe at action script !!

i have traced both \_global.albumLink and albumno from the mc with ssp in, and they show different results for each thumb.

the xml is … albumnumber=“2” etc

thanks in advance ![](http://forum.kirupa.com/uploads/kirupa/4186/1d0993f040a83292.png)… this is the last but one little problem i have !!
