# Variables lost from one Function to another

**URL:** <https://forum.kirupa.com/t/variables-lost-from-one-function-to-another/268072>\
**Category:** flash\
**Created:** [August 8, 2008, 9:09pm UTC](https://forum.kirupa.com/t/variables-lost-from-one-function-to-another/268072 "2008-08-08T21:09:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [August 8, 2008, 9:09pm UTC](https://forum.kirupa.com/t/variables-lost-from-one-function-to-another/268072/1 "2008-08-08T21:09:48Z")

</div>

Hi

I have this function:

```auto
function create(e:Event):void 
{
	flashmo_xml = XML(e.target.data);
	text = (flashmo_xml.thumbnail*.@text.toString() );

		
}
trace (text);

```

the trace is showing nothing. It only works if i put the trace into the function create.

is there a way of getting that variable without doing that?

Thanks
