Load variables, not trace text

i say not trace text because these are the only tutorials i can find. everyone teaches you how to trace text into a text box, but i’m trying to utilize variables, specified in the xml.

What I have is this simple script says says pause three seconds before continuing. However, I would like to load that data from an external text or xml file.

Any tips?

pause = function () {
pausei = setInterval(pause, 3000);