# Posting image name as variable

**URL:** <https://forum.kirupa.com/t/posting-image-name-as-variable/161154>\
**Category:** flash\
**Created:** [September 1, 2005, 11:16am UTC](https://forum.kirupa.com/t/posting-image-name-as-variable/161154 "2005-09-01T11:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuzzyduck](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fuzzyduck](https://forum.kirupa.com/u/fuzzyduck)\
**Post date:** [September 1, 2005, 11:16am UTC](https://forum.kirupa.com/t/posting-image-name-as-variable/161154/1 "2005-09-01T11:16:07Z")

</div>

Hi there,

I couldn’t believe how simple it was to create variable using text fields - i.e. give it a variable name in the properties section and when you post teh variables what ever you’ve typed in the text box gets sent - Excellent.

My problem comes with the images. I’ve created an empty movie clip like so:

this.createEmptyMovieClip(“mainimageholder”,1);  
mainimageholder.\_x=275;  
mainimageholder.\_y=190;

And then put an inital image in there:

mainimageholder.loadMovie(“Images/LilyHeart.jpg”);

But how do I get flash to send the image name which is loaded as a variable?

I hope thsi is a simple one for someone - I just can’t seem to work it out?

Thanks
