# How to retrieve property of previous image in photo gallery?

**URL:** <https://forum.kirupa.com/t/how-to-retrieve-property-of-previous-image-in-photo-gallery/311839>\
**Category:** flash\
**Created:** [July 18, 2010, 4:03am UTC](https://forum.kirupa.com/t/how-to-retrieve-property-of-previous-image-in-photo-gallery/311839 "2010-07-18T04:03:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![briotron](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/briotron/32/3957_2.png) [@briotron](https://forum.kirupa.com/u/briotron)\
**Post date:** [July 18, 2010, 4:03am UTC](https://forum.kirupa.com/t/how-to-retrieve-property-of-previous-image-in-photo-gallery/311839/1 "2010-07-18T04:03:09Z")

</div>

To make a long story short, I need to figure out an as-easy-as-possible way to have my flash actionscript retrieve the file name of the last image externally loaded into a gallery. For example: In this gallery, image3.jpg is selected. Next image7.jpg is selected. Once this image7 is selected, and while it is loading, another loader in a layer beneath loads the previous-selected image3, so that image7.jpg fades in over the last image selected (image3.jpg).

Here’s the code I have on the loader (if it matters):

onClipEvent (load) {  
imageProperties = \_root.getCurrentImageName\_splash(0);  
loadMovie(\_root.url+imageProperties[‘name’], this.cont.cont1);  
url = imageProperties[‘linkToOpen’];  
targetWindow = imageProperties[‘target’];  
}

All I need is a variable, something like ‘prev\_imageProperties’, that works and I’m golden! Any help would be greatly appreciated
