# Timeline variable problem

**URL:** <https://forum.kirupa.com/t/timeline-variable-problem/271876>\
**Category:** Uncategorized\
**Created:** [September 29, 2008, 10:16pm UTC](https://forum.kirupa.com/t/timeline-variable-problem/271876 "2008-09-29T22:16:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_hansen84](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mr\_hansen84](https://forum.kirupa.com/u/mr_hansen84)\
**Post date:** [September 29, 2008, 10:16pm UTC](https://forum.kirupa.com/t/timeline-variable-problem/271876/1 "2008-09-29T22:16:27Z")

</div>

hey guys,

ive got a problem…  
im loading xml into a function and i wanna take a variable out of that function and put it on a timeline variable. How can this be done ?

this is what ive got:

…loading xml code… -\>  
var hey;  
settingsXML.onLoad = function() {  
hey = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
};  
trace(hey)

thanks in advance
