# FMX04 Question re: passing parameters

**URL:** <https://forum.kirupa.com/t/fmx04-question-re-passing-parameters/282012>\
**Category:** flash\
**Created:** [February 16, 2009, 6:06pm UTC](https://forum.kirupa.com/t/fmx04-question-re-passing-parameters/282012 "2009-02-16T18:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdillion](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@rdillion](https://forum.kirupa.com/u/rdillion)\
**Post date:** [February 16, 2009, 6:06pm UTC](https://forum.kirupa.com/t/fmx04-question-re-passing-parameters/282012/1 "2009-02-16T18:06:04Z")

</div>

Hello all,  
I am quite new to AS, and am currently using v 2.0. I have been following the tutorials on creating photo galleries, and galleries with thumbnails from this site. The question I have is this: In the tutorial for Adding Thumbnails on Page 5, the following is noted:

function thumbnails\_fn(k)…

This function takes in a number, k, as an argument from the loadXML function.

I do not understand how the number from the loadXML function is passed to the thumbnails\_fn function. I do not see any reference to a variable named “k” in the loadXML function. Is the letter “k” arbitrary in this case? Any advice on how this is getting from the one function to the other is greatly appreciated. I only code on an occasional basis, although am really enjoying the actionscript environment and possibilities, and looking forward to doing more with it!!

Thanks in advance for any and all help,

Russ
