# Loading variables from XML

**URL:** <https://forum.kirupa.com/t/loading-variables-from-xml/39601>\
**Category:** flash\
**Created:** [January 9, 2004, 1:20am UTC](https://forum.kirupa.com/t/loading-variables-from-xml/39601 "2004-01-09T01:20:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyvistaADD](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnnyvistaADD](https://forum.kirupa.com/u/johnnyvistaADD)\
**Post date:** [January 9, 2004, 1:20am UTC](https://forum.kirupa.com/t/loading-variables-from-xml/39601/1 "2004-01-09T01:20:44Z")

</div>

hoping someone can help…

i’m trying to load in a variable value from an xml file.

i want to turn the visibility of a button clip on or off from within my loaded XML code. i know that my xml is loading and working correctly. in my XML file, i have visible=“true” set up as an attribute to one of my nodes. what do i need to do to get

\_root.myButton.\_visible=[the variable from my XML];

?

thanks for your forthcoming help.  
jv:s:
