# Variables inside a function

**URL:** <https://forum.kirupa.com/t/variables-inside-a-function/270040>\
**Category:** flash\
**Created:** [September 4, 2008, 3:07pm UTC](https://forum.kirupa.com/t/variables-inside-a-function/270040 "2008-09-04T15:07:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rundevo](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@Rundevo](https://forum.kirupa.com/u/Rundevo)\
**Post date:** [September 4, 2008, 3:07pm UTC](https://forum.kirupa.com/t/variables-inside-a-function/270040/1 "2008-09-04T15:07:22Z")

</div>

Hi guys!

I have 16 variables that are set after finishing loading XML!  
The variables determine 16 random values and I need to be able to use those values outside of the function that set them.

I´m dying to know how that is done, anyone kind enough to share me this knowledge?

Thanks in advance

/rundevo
