# SlideshowPro - Accessing Variables in the Parent MC?

**URL:** <https://forum.kirupa.com/t/slideshowpro-accessing-variables-in-the-parent-mc/286045>\
**Category:** flash\
**Created:** [April 9, 2009, 8:19am UTC](https://forum.kirupa.com/t/slideshowpro-accessing-variables-in-the-parent-mc/286045 "2009-04-09T08:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Post date:** [April 9, 2009, 8:19am UTC](https://forum.kirupa.com/t/slideshowpro-accessing-variables-in-the-parent-mc/286045/1 "2009-04-09T08:19:58Z")

</div>

I am using SSP to load SWFs which in turn load XML data, so I would like to use the caption property in SSP’s XML file to index the instances on the SWF XML feeds

in layman’s terms… I need to make “event.data.caption;” into a global variable for the loaded SWF’s to read it:

import net.slideshowpro.slideshowpro.\*;

function onImageData(event:SSPDataEvent) {  
if (event.type==“imageData”) {  
trace(event.data.caption;)  
}  
}

my\_ssp.addEventListener(SSPDataEvent.IMAGE\_DATA, onImageData);

I am not using classes, so I cannot follow [http://www.greenethumb.com/article/11/global-variables-in-as3](http://www.greenethumb.com/article/11/global-variables-in-as3)

thanks,  
Ian
